aboutsummaryrefslogtreecommitdiffstats
path: root/storage/filesystem/object.go
diff options
context:
space:
mode:
Diffstat (limited to 'storage/filesystem/object.go')
-rw-r--r--storage/filesystem/object.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/storage/filesystem/object.go b/storage/filesystem/object.go
index d2ba411..6cd2d4c 100644
--- a/storage/filesystem/object.go
+++ b/storage/filesystem/object.go
@@ -205,9 +205,7 @@ func (s *ObjectStorage) encodedObjectSizeFromPackfile(h plumbing.Hash) (
if ok {
return obj.Size(), nil
}
- }
-
- if err != nil && err != plumbing.ErrObjectNotFound {
+ } else if err != nil && err != plumbing.ErrObjectNotFound {
return 0, err
}