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
|
return err
|
||||||
}
|
}
|
||||||
if err := fh.Close(); err != nil {
|
if err := fh.Close(); err != nil {
|
||||||
fh.Close()
|
|
||||||
os.Remove(tempPath)
|
os.Remove(tempPath)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue