Skip to content

Commit

Permalink
stream: propagate end's cb to write
Browse files Browse the repository at this point in the history
  • Loading branch information
rexagod committed Jun 7, 2020
1 parent d8eef83 commit b722039
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/_stream_writable.js
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ Writable.prototype.end = function(chunk, encoding, cb) {
}

if (chunk !== null && chunk !== undefined)
this.write(chunk, encoding);
this.write(chunk, encoding, cb);

// .end() fully uncorks.
if (state.corked) {
Expand Down

0 comments on commit b722039

Please sign in to comment.