Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update index.js
  • Loading branch information
iarna authored Feb 4, 2019
commit 5cb9dd72e0868c832fac5da4c0a17fa3d0af8a10
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,9 @@ function writeFileSync (filename, data, options) {
if (fd) {
try {
fs.closeSync(fd)
} catch(e) {}
} catch (ex) {
// ignore close errors at this stage, error may have closed fd already.
}
}
removeOnExitHandler()
cleanup()
Expand Down