Removes an unnecessary close.
This commit is contained in:
parent
3f02997515
commit
cf7b1aaf04
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue