Skip to content

Commit ebc1b77

Browse files
JacksonTianaddaleax
authored andcommitted
stream: no need to initial er with false
initial `er` with false is unnecessarily. PR-URL: #20607 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Weijia Wang <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent 28ecf93 commit ebc1b77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/_stream_writable.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ function writeAfterEnd(stream, cb) {
251251
// and undefined/non-string values are only allowed in object mode.
252252
function validChunk(stream, state, chunk, cb) {
253253
var valid = true;
254-
var er = false;
254+
var er;
255255

256256
if (chunk === null) {
257257
er = new ERR_STREAM_NULL_VALUES();

0 commit comments

Comments
 (0)