From 18d7e8eb4610a224c28ec848692d199669be3e8e Mon Sep 17 00:00:00 2001 From: Máximo Cuadros Date: Tue, 20 Sep 2016 15:23:37 +0200 Subject: fix build --- storage/filesystem/internal/dotgit/dotgit.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'storage') 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 } -- cgit