diff options
author | knqyf263 <knqyf263@gmail.com> | 2019-08-04 01:00:33 -1000 |
---|---|---|
committer | knqyf263 <knqyf263@gmail.com> | 2019-08-04 01:00:35 -1000 |
commit | a2af865f9dbf292a9804c67abc2727551f7954dd (patch) | |
tree | 1977bca41aa85e2c57bf48f6c6001ebeec33204b /plumbing/object | |
parent | d1f089794aff17a78d5487d5e681d63fba17aad1 (diff) | |
download | go-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.go | 3 |
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) |