Skip to content

Commit 3813f33

Browse files
authored
Update lib/internal/streams/writable.js
1 parent 9ef4a34 commit 3813f33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/streams/writable.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ function onwrite(stream, er) {
624624
process.nextTick(afterWrite, stream, state, 1, cb);
625625
state.state |= kAfterWritePending;
626626
} else {
627-
state.pendingcb -= 1;
627+
state.pendingcb--;
628628
}
629629
} else if ((state.state & kAfterWriteTickInfo) !== 0 &&
630630
state.afterWriteTickInfo.cb === cb) {

0 commit comments

Comments
 (0)