Skip to content
Merged
Changes from all commits
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
stream: remove unused function argument
watchClosed() is only ever called with an anonymous function for the
action parameter. This anonymous funciton does not take any arguments.
Remove unused argument from invocation of action().
  • Loading branch information
Trott committed Jan 5, 2022
commit 1fc45dd77382339c002d25dc697a6180dea9d887
2 changes: 1 addition & 1 deletion lib/internal/webstreams/readablestream.js
Original file line number Diff line number Diff line change
Expand Up @@ -1332,7 +1332,7 @@ function readableStreamPipeTo(

function watchClosed(stream, promise, action) {
if (stream[kState].state === 'closed')
action(stream[kState].storedError);
action();
else
PromisePrototypeThen(promise, action, () => {});
}
Expand Down