Skip to content

Commit

Permalink
fixup! linting
Browse files Browse the repository at this point in the history
  • Loading branch information
jakecastelli committed Jun 13, 2024
1 parent 02c7662 commit 84580ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions lib/internal/streams/end-of-stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,10 @@ function eos(stream, options, callback) {
} else if (
!readable &&
(!willEmitClose || isReadable(stream)) &&
(writableFinished || isWritable(stream) === false)
(writableFinished || isWritable(stream) === false) &&
wState && wState.pendingcb === 0
) {
if (wState && wState.pendingcb === 0) {
process.nextTick(onclosed);
}
process.nextTick(onclosed);
} else if (
!writable &&
(!willEmitClose || isWritable(stream)) &&
Expand Down
2 changes: 1 addition & 1 deletion test/parallel/test-stream-finished.js
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,6 @@ testClosed((opts) => new Writable({ write() {}, ...opts }));

finished(stream, { readable: false }, common.mustCall((err) => {
assert(!err);
assert.strictEqual(stream._writableState.pendingcb, 0)
assert.strictEqual(stream._writableState.pendingcb, 0);
}));
}

0 comments on commit 84580ed

Please sign in to comment.