From c413a9161e496a2b02e28364f6d9ae9c4b5fef3a 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 01c9ce6a38..3550b10e8a 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 }