aboutsummaryrefslogtreecommitdiffstats
path: root/storage/filesystem/internal/dotgit/dotgit.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-09-20 15:23:37 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2016-09-20 15:23:37 +0200
commit18d7e8eb4610a224c28ec848692d199669be3e8e (patch)
treec0d477dda8474ec48d2402c6a0fb2548a31c2f79 /storage/filesystem/internal/dotgit/dotgit.go
parent7e8d7125446bb6e12a056a5a6ca979727790d0df (diff)
downloadgo-git-18d7e8eb4610a224c28ec848692d199669be3e8e.tar.gz
fix build
Diffstat (limited to 'storage/filesystem/internal/dotgit/dotgit.go')
-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
}