aboutsummaryrefslogtreecommitdiffstats
path: root/tag.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-08-22 03:29:05 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2016-08-22 03:29:05 +0200
commit2ed3474ab8e52c98a87e390d5128d45d693a115d (patch)
tree6f136c2508c22f6b5146ef08c49821a45a5f2357 /tag.go
parent5b13c1a2e55cb442484d9c7b45389f422b110eec (diff)
downloadgo-git-2ed3474ab8e52c98a87e390d5128d45d693a115d.tar.gz
ForEach review and Commit.Tree err return
Diffstat (limited to 'tag.go')
-rw-r--r--tag.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/tag.go b/tag.go
index 16600fd..fec2abf 100644
--- a/tag.go
+++ b/tag.go
@@ -125,7 +125,7 @@ func (t *Tag) Tree() (*Tree, error) {
if err != nil {
return nil, err
}
- return commit.Tree(), nil
+ return commit.Tree()
case core.TreeObject:
return t.r.Tree(t.Target)
default:
@@ -184,7 +184,7 @@ func (iter *TagIter) Next() (*Tag, error) {
// ForEach call the cb function for each tag contained on this iter until
// an error happends or the end of the iter is reached. If ErrStop is sent
-// the iteration is stop but no error is returned
+// the iteration is stop but no error is returned. The iterator is closed.
func (iter *TagIter) ForEach(cb func(*Tag) error) error {
return iter.ObjectIter.ForEach(func(obj core.Object) error {
tag := &Tag{r: iter.r}