Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup: simplify according to suggestion
  • Loading branch information
ronag committed Apr 29, 2020
commit 882f704231fd9df2584a09e85b553f570023e78f
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