Skip to content

Commit

Permalink
Fix Node.js 11 compatibility (#198)
Browse files Browse the repository at this point in the history
Fixes #196
  • Loading branch information
jfinkhaeuser authored and sindresorhus committed Apr 9, 2019
1 parent 7bbbacc commit ee0ee82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,7 @@ module.exports.stream = readableStream => new Promise((resolve, reject) => {
readableStream.unshift(chunk);

if (stream.pipeline) {
resolve(stream.pipeline(readableStream, pass));
resolve(stream.pipeline(readableStream, pass, () => {}));
} else {
resolve(readableStream.pipe(pass));
}
Expand Down

0 comments on commit ee0ee82

Please sign in to comment.