Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed Nov 25, 2021
1 parent eceb488 commit bab2cd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/streams/pipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function destroyer(stream, reading, writing) {
return (err) => {
if (finished) return;
finished = true;
destroyImpl.destroyer(stream, err);
destroyImpl.destroyer(stream, err || new ERR_STREAM_DESTROYED('pipe'));
};
}

Expand Down

0 comments on commit bab2cd5

Please sign in to comment.