aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/object
diff options
context:
space:
mode:
authorknqyf263 <knqyf263@gmail.com>2019-08-04 01:00:33 -1000
committerknqyf263 <knqyf263@gmail.com>2019-08-04 01:00:35 -1000
commita2af865f9dbf292a9804c67abc2727551f7954dd (patch)
tree1977bca41aa85e2c57bf48f6c6001ebeec33204b /plumbing/object
parentd1f089794aff17a78d5487d5e681d63fba17aad1 (diff)
downloadgo-git-a2af865f9dbf292a9804c67abc2727551f7954dd.tar.gz
Remove else
Signed-off-by: knqyf263 <knqyf263@gmail.com>
Diffstat (limited to 'plumbing/object')
-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)