aboutsummaryrefslogtreecommitdiffstats
path: root/object_walker.go
diff options
context:
space:
mode:
authorferhat elmas <elmas.ferhat@gmail.com>2017-12-18 02:08:58 +0100
committerferhat elmas <elmas.ferhat@gmail.com>2017-12-18 02:09:00 +0100
commit9a9f35269c31e880bc88486a5bcc13f592eace6a (patch)
tree91c31e3e9978143f19087591c453a5d4f6781365 /object_walker.go
parent757a26038e5404f94523ba07d017d1b38bcbf6dd (diff)
downloadgo-git-9a9f35269c31e880bc88486a5bcc13f592eace6a.tar.gz
*: simplication
- no unnecessary err/bool check, uses them directly Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com>
Diffstat (limited to 'object_walker.go')
-rw-r--r--object_walker.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/object_walker.go b/object_walker.go
index 8bae1fa..4cbbcca 100644
--- a/object_walker.go
+++ b/object_walker.go
@@ -36,10 +36,7 @@ func (p *objectWalker) walkAllRefs() error {
}
return p.walkObjectTree(ref.Hash())
})
- if err != nil {
- return err
- }
- return nil
+ return err
}
func (p *objectWalker) isSeen(hash plumbing.Hash) bool {