From fa34e58bf6fc190bd577c6302a590dce9cdc6d41 Mon Sep 17 00:00:00 2001 From: niukuo Date: Thu, 21 Mar 2019 19:26:48 +0800 Subject: fix missing error in bfsCommitIterator Signed-off-by: niukuo --- plumbing/object/commit_walker_bfs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plumbing/object/commit_walker_bfs.go') diff --git a/plumbing/object/commit_walker_bfs.go b/plumbing/object/commit_walker_bfs.go index aef1cf2..dabfe75 100644 --- a/plumbing/object/commit_walker_bfs.go +++ b/plumbing/object/commit_walker_bfs.go @@ -67,7 +67,7 @@ func (w *bfsCommitIterator) Next() (*Commit, error) { for _, h := range c.ParentHashes { err := w.appendHash(c.s, h) if err != nil { - return nil, nil + return nil, err } } -- cgit