diff options
author | Jeremy Stribling <strib@alum.mit.edu> | 2018-10-12 13:00:37 -0700 |
---|---|---|
committer | Jeremy Stribling <strib@alum.mit.edu> | 2018-10-12 13:03:19 -0700 |
commit | b3a3f0ab953608fb283392d4431a963622643b4c (patch) | |
tree | 90e71cb643748562b93c0b93c5d2088b48b52010 /storage/filesystem/object.go | |
parent | 5c471c34813577a420c1a5af61dd855f70badce1 (diff) | |
download | go-git-b3a3f0ab953608fb283392d4431a963622643b4c.tar.gz |
filesystem: add a new test for EncodedObjectSize
Suggested by taruti.
Signed-off-by: Jeremy Stribling <strib@alum.mit.edu>
Diffstat (limited to 'storage/filesystem/object.go')
-rw-r--r-- | storage/filesystem/object.go | 4 |
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 } |