Skip to content

Commit

Permalink
fixup: simplify according to suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed Apr 29, 2020
1 parent 8cab4dd commit 882f704
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/internal/streams/end-of-stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,7 @@ function eos(stream, opts, callback) {
// TODO(ronag): Throw some kind of error? Does it make sense
// to call finished() on a "finished" stream?
// TODO(ronag): willEmitClose?
process.nextTick(() => {
callback();
});
process.nextTick(callback);
}

return function() {
Expand Down

0 comments on commit 882f704

Please sign in to comment.