Skip to content
Prev Previous commit
Next Next commit
remove unnesessary closure
  • Loading branch information
vadzim committed Apr 15, 2020
commit e9becca61ad97748ffbafb550f21349253a14c74
2 changes: 1 addition & 1 deletion lib/internal/streams/from.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function from(Readable, iterable, opts) {
} catch (e) {
error = error || e;
} finally {
process.nextTick(() => cb(error));
process.nextTick(cb, error);
}
};
Comment thread
vadzim marked this conversation as resolved.

Expand Down