stream: no need to initial er with false
initial `er` with false is unnecessarily. PR-URL: https://github.com/nodejs/node/pull/20607 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Weijia Wang <starkwang@126.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
This commit is contained in:
parent
b60b18379d
commit
0e9ea35e39
@ -251,7 +251,7 @@ function writeAfterEnd(stream, cb) {
|
|||||||
// and undefined/non-string values are only allowed in object mode.
|
// and undefined/non-string values are only allowed in object mode.
|
||||||
function validChunk(stream, state, chunk, cb) {
|
function validChunk(stream, state, chunk, cb) {
|
||||||
var valid = true;
|
var valid = true;
|
||||||
var er = false;
|
var er;
|
||||||
|
|
||||||
if (chunk === null) {
|
if (chunk === null) {
|
||||||
er = new ERR_STREAM_NULL_VALUES();
|
er = new ERR_STREAM_NULL_VALUES();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user