fix(filesystem): explicitly ignore Close() error on directory file descriptor
This commit is contained in:
parent
cf67dd3851
commit
df753aaebf
1 changed files with 1 additions and 1 deletions
|
|
@ -1137,7 +1137,7 @@ func (r *sandboxFs) WriteFile(path string, data []byte) error {
|
||||||
// Sync directory to ensure rename is durable
|
// Sync directory to ensure rename is durable
|
||||||
if dirFile, err := root.Open("."); err == nil {
|
if dirFile, err := root.Open("."); err == nil {
|
||||||
_ = dirFile.Sync()
|
_ = dirFile.Sync()
|
||||||
dirFile.Close()
|
_ = dirFile.Close()
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue