diff options
Diffstat (limited to 'storage/filesystem/internal/dotgit/dotgit.go')
-rw-r--r-- | storage/filesystem/internal/dotgit/dotgit.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/storage/filesystem/internal/dotgit/dotgit.go b/storage/filesystem/internal/dotgit/dotgit.go index ebc6bad..d644810 100644 --- a/storage/filesystem/internal/dotgit/dotgit.go +++ b/storage/filesystem/internal/dotgit/dotgit.go @@ -212,11 +212,7 @@ func (d *DotGit) DeleteOldObjectPackAndIndex(hash plumbing.Hash, t time.Time) er if err != nil { return err } - err = d.fs.Remove(d.objectPackPath(hash, `idx`)) - if err != nil { - return err - } - return nil + return d.fs.Remove(d.objectPackPath(hash, `idx`)) } // NewObject return a writer for a new object file. |