Skip to content

Commit

Permalink
Fix delayAsyncDestroy returning undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
szmarczak committed Apr 24, 2022
1 parent 6562e77 commit aa51181
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/utils/delay-async-destroy.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module.exports = stream => {
if (stream.listenerCount('error') !== 0) {
return;
return stream;
}

stream.__destroy = stream._destroy;
Expand Down

0 comments on commit aa51181

Please sign in to comment.