From a849edf19a113b5a9aab8e7538b9270b6590c281 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Mon, 10 Apr 2017 22:17:03 +0200 Subject: [PATCH] local: remove double Close() --- src/restic/backend/local/local.go | 1 - 1 file changed, 1 deletion(-) diff --git a/src/restic/backend/local/local.go b/src/restic/backend/local/local.go index eace14ee0..a8b9f4501 100644 --- a/src/restic/backend/local/local.go +++ b/src/restic/backend/local/local.go @@ -118,7 +118,6 @@ func (b *Local) Save(h restic.Handle, rd io.Reader) (err error) { err = f.Close() if err != nil { - f.Close() return errors.Wrap(err, "Close") }