aboutsummaryrefslogtreecommitdiffstats
path: root/storage
diff options
context:
space:
mode:
Diffstat (limited to 'storage')
-rw-r--r--storage/filesystem/internal/dotgit/dotgit.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/filesystem/internal/dotgit/dotgit.go b/storage/filesystem/internal/dotgit/dotgit.go
index 54113d5..c4392a2 100644
--- a/storage/filesystem/internal/dotgit/dotgit.go
+++ b/storage/filesystem/internal/dotgit/dotgit.go
@@ -299,14 +299,14 @@ func (w *PackWriter) Close() error {
}()
pipe := []func() error{
+ w.synced.Close,
func() error { return <-w.result },
w.fr.Close,
w.fw.Close,
- w.synced.Close,
w.save,
}
- for i, f := range pipe {
+ for _, f := range pipe {
if err := f(); err != nil {
return err
}