mirror of https://github.com/status-im/consul.git
Removes an unnecessary close.
This commit is contained in:
parent
56d651f991
commit
c413a9161e
|
@ -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