diff options
author | Ori Rawlings <orirawlings@gmail.com> | 2017-12-17 20:26:53 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-17 20:26:53 -0600 |
commit | fbe632ef8d41c17caa76b6ed3f1d404e1f047299 (patch) | |
tree | 91c31e3e9978143f19087591c453a5d4f6781365 /storage/filesystem | |
parent | 757a26038e5404f94523ba07d017d1b38bcbf6dd (diff) | |
parent | 9a9f35269c31e880bc88486a5bcc13f592eace6a (diff) | |
download | go-git-fbe632ef8d41c17caa76b6ed3f1d404e1f047299.tar.gz |
Merge pull request #696 from ferhatelmas/simplify-again
*: simplication
Diffstat (limited to 'storage/filesystem')
-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. |