Skip to content

Commit

Permalink
stream: no need to initial er with false
Browse files Browse the repository at this point in the history
initial `er` with false is unnecessarily.

PR-URL: #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>
  • Loading branch information
JacksonTian authored and addaleax committed May 14, 2018
1 parent 28ecf93 commit ebc1b77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/_stream_writable.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ function writeAfterEnd(stream, cb) {
// and undefined/non-string values are only allowed in object mode.
function validChunk(stream, state, chunk, cb) {
var valid = true;
var er = false;
var er;

if (chunk === null) {
er = new ERR_STREAM_NULL_VALUES();
Expand Down

0 comments on commit ebc1b77

Please sign in to comment.