Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Commit a2af865

Browse files
committed
Remove else
Signed-off-by: knqyf263 <knqyf263@gmail.com>
1 parent d1f0897 commit a2af865

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plumbing/object/commit_walker_file.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ func (c *commitFileIter) ForEach(cb func(*Commit) error) error {
130130
commit, nextErr := c.Next()
131131
if nextErr == io.EOF {
132132
break
133-
} else if nextErr != nil {
133+
}
134+
if nextErr != nil {
134135
return nextErr
135136
}
136137
err := cb(commit)

0 commit comments

Comments
 (0)