Skip to content

Commit

Permalink
stream: add brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
rluvaton committed Sep 24, 2023
1 parent 84157bb commit f86c8ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/internal/streams/writable.js
Expand Up @@ -707,7 +707,7 @@ Writable.prototype.end = function(chunk, encoding, cb) {

function needFinish(state) {
return (
// State is ended && constructed but not destroyed, finished, writing, errorEmitted or closedEmitted
// State is ended && constructed but not destroyed, finished, writing, errorEmitted or closedEmitted
state.state & (
kEnding |
kDestroyed |
Expand All @@ -716,7 +716,7 @@ function needFinish(state) {
kWriting |
kErrorEmitted |
kCloseEmitted
) !== kEnding | kConstructed &&
) !== (kEnding | kConstructed) &&
state.length === 0 &&
!state.errored &&
state.buffered.length === 0);
Expand Down

0 comments on commit f86c8ab

Please sign in to comment.