diff --git a/modules/git/tree_gogit.go b/modules/git/tree_gogit.go index fa8f19fadf7..59f6129b2ab 100644 --- a/modules/git/tree_gogit.go +++ b/modules/git/tree_gogit.go @@ -62,7 +62,7 @@ func (t *Tree) ListEntriesRecursiveWithSize() (Entries, error) { if err := t.IterateEntriesRecursive(func(entry *TreeEntry) error { entries = append(entries, convertedEntry) return nil - }); err != nil { + }, nil); err != nil { return nil, err } return entries, nil