Skip to content

Commit 882f704

Browse files
committed
fixup: simplify according to suggestion
1 parent 8cab4dd commit 882f704

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

lib/internal/streams/end-of-stream.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,7 @@ function eos(stream, opts, callback) {
166166
// TODO(ronag): Throw some kind of error? Does it make sense
167167
// to call finished() on a "finished" stream?
168168
// TODO(ronag): willEmitClose?
169-
process.nextTick(() => {
170-
callback();
171-
});
169+
process.nextTick(callback);
172170
}
173171

174172
return function() {

0 commit comments

Comments
 (0)