Skip to content

Commit

Permalink
test: remove redundant finished call
Browse files Browse the repository at this point in the history
  • Loading branch information
legobeat committed Oct 24, 2023
1 parent 56e4193 commit b426a78
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions test/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const {
PassThrough,
Transform,
finished,
pipeline,
} = require('readable-stream');
const test = require('tape');
Expand Down Expand Up @@ -132,7 +131,6 @@ function bufferToEnd(stream, callback) {
callback(err, results);
}
stream.prependListener('close', onFinish);
finished(stream, onFinish);
stream.on('data', (chunk) => {
results.push(chunk);
});
Expand Down

0 comments on commit b426a78

Please sign in to comment.