From cf7b1aaf04a26e984126a9e147b02a276391387a Mon Sep 17 00:00:00 2001 From: James Phillips Date: Mon, 24 Jul 2017 21:41:18 -0700 Subject: [PATCH] Removes an unnecessary close. --- agent/agent.go | 1 - 1 file changed, 1 deletion(-) diff --git a/agent/agent.go b/agent/agent.go index 01c9ce6a3..3550b10e8 100644 --- a/agent/agent.go +++ b/agent/agent.go @@ -1495,7 +1495,6 @@ func writeFileAtomic(path string, contents []byte) error { return err } if err := fh.Close(); err != nil { - fh.Close() os.Remove(tempPath) return err }