Merge pull request #3123 from chengzhichao-xydt/codex/filesystem-dirfile-close

fix(filesystem): explicitly ignore Close() error on directory file descriptor
This commit is contained in:
Mauro 2026-06-14 21:21:46 +02:00 committed by GitHub
commit 5e415ed210
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1137,7 +1137,7 @@ func (r *sandboxFs) WriteFile(path string, data []byte) error {
// Sync directory to ensure rename is durable
if dirFile, err := root.Open("."); err == nil {
_ = dirFile.Sync()
dirFile.Close()
_ = dirFile.Close()
}
return nil