Removes an unnecessary close.

This commit is contained in:
James Phillips 2017-07-24 21:41:18 -07:00 committed by GitHub
parent 56d651f991
commit c413a9161e
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
}