aboutsummaryrefslogtreecommitdiffstats
path: root/storage/memory
diff options
context:
space:
mode:
Diffstat (limited to 'storage/memory')
-rw-r--r--storage/memory/storage.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/storage/memory/storage.go b/storage/memory/storage.go
index c76d163..0f66f1e 100644
--- a/storage/memory/storage.go
+++ b/storage/memory/storage.go
@@ -116,8 +116,7 @@ func (o *ObjectStorage) SetEncodedObject(obj plumbing.EncodedObject) (plumbing.H
}
func (o *ObjectStorage) HasEncodedObject(h plumbing.Hash) (err error) {
- _, ok := o.Objects[h]
- if !ok {
+ if _, ok := o.Objects[h]; !ok {
return plumbing.ErrObjectNotFound
}
return nil