Removes an unnecessary close.

This commit is contained in:
James Phillips 2017-07-24 21:41:18 -07:00 committed by GitHub
parent 3f02997515
commit cf7b1aaf04
1 changed files with 0 additions and 1 deletions

View File

@ -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
}