Skip to content

Commit d79f8c2

Browse files
Trotttargos
authored andcommitted
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(). PR-URL: #41403 Reviewed-By: Yongsheng Zhang <[email protected]> Reviewed-By: Mohammed Keyvanzadeh <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 02ca5d7 commit d79f8c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/webstreams/readablestream.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1332,7 +1332,7 @@ function readableStreamPipeTo(
13321332

13331333
function watchClosed(stream, promise, action) {
13341334
if (stream[kState].state === 'closed')
1335-
action(stream[kState].storedError);
1335+
action();
13361336
else
13371337
PromisePrototypeThen(promise, action, () => {});
13381338
}

0 commit comments

Comments
 (0)