Skip to content

Commit 975edf5

Browse files
Mesteerydanielleadams
authored andcommitted
stream: clean endWritableNT
The `state` argument was unused. PR-URL: #39645 Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
1 parent 952a528 commit 975edf5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/internal/streams/readable.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1348,7 +1348,7 @@ function endReadableNT(state, stream) {
13481348
stream.emit('end');
13491349

13501350
if (stream.writable && stream.allowHalfOpen === false) {
1351-
process.nextTick(endWritableNT, state, stream);
1351+
process.nextTick(endWritableNT, stream);
13521352
} else if (state.autoDestroy) {
13531353
// In case of duplex streams we need a way to detect
13541354
// if the writable side is ready for autoDestroy as well.
@@ -1367,7 +1367,7 @@ function endReadableNT(state, stream) {
13671367
}
13681368
}
13691369

1370-
function endWritableNT(state, stream) {
1370+
function endWritableNT(stream) {
13711371
const writable = stream.writable && !stream.writableEnded &&
13721372
!stream.destroyed;
13731373
if (writable) {

0 commit comments

Comments
 (0)