Skip to content

Commit d16ec51

Browse files
authored
Roll back to the previous condition
1 parent 02fc69f commit d16ec51

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/tmp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ function dirSync(options) {
369369
function _prepareTmpFileRemoveCallback(name, fd, opts) {
370370
const removeCallback = _prepareRemoveCallback(function _removeCallback(fdPath) {
371371
try {
372-
if (-1 != fdPath[0]) {
372+
if (0 <= fdPath[0]) {
373373
fs.closeSync(fdPath[0]);
374374
}
375375
}

0 commit comments

Comments
 (0)