Skip to content

Commit

Permalink
Always provide a callback to fs.close()
Browse files Browse the repository at this point in the history
Fix #231
  • Loading branch information
isaacs committed Sep 25, 2019
1 parent dbd6f52 commit d04c3ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/write-entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ const WriteEntry = warner(class WriteEntry extends MiniPass {
er.path = this.absolute
er.syscall = 'read'
er.code = 'EOF'
this[CLOSE](fd)
this[CLOSE](fd, _ => _)
return this.emit('error', er)
}

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

Expand Down

0 comments on commit d04c3ff

Please sign in to comment.