Skip to content

Commit d04c3ff

Browse files
committed
Always provide a callback to fs.close()
Fix #231
1 parent dbd6f52 commit d04c3ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/write-entry.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ const WriteEntry = warner(class WriteEntry extends MiniPass {
231231
er.path = this.absolute
232232
er.syscall = 'read'
233233
er.code = 'EOF'
234-
this[CLOSE](fd)
234+
this[CLOSE](fd, _ => _)
235235
return this.emit('error', er)
236236
}
237237

@@ -240,7 +240,7 @@ const WriteEntry = warner(class WriteEntry extends MiniPass {
240240
er.path = this.absolute
241241
er.syscall = 'read'
242242
er.code = 'EOF'
243-
this[CLOSE](fd)
243+
this[CLOSE](fd, _ => _)
244244
return this.emit('error', er)
245245
}
246246

0 commit comments

Comments
 (0)