aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/object/commit_walker_file.go
diff options
context:
space:
mode:
Diffstat (limited to 'plumbing/object/commit_walker_file.go')
-rw-r--r--plumbing/object/commit_walker_file.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/plumbing/object/commit_walker_file.go b/plumbing/object/commit_walker_file.go
index 76c158b..b73e4ce 100644
--- a/plumbing/object/commit_walker_file.go
+++ b/plumbing/object/commit_walker_file.go
@@ -130,7 +130,8 @@ func (c *commitFileIter) ForEach(cb func(*Commit) error) error {
commit, nextErr := c.Next()
if nextErr == io.EOF {
break
- } else if nextErr != nil {
+ }
+ if nextErr != nil {
return nextErr
}
err := cb(commit)