Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ebc1b77

Browse filesBrowse 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 <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>
1 parent 28ecf93 commit ebc1b77
Copy full SHA for ebc1b77

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎lib/_stream_writable.js‎

Copy file name to clipboardExpand all lines: lib/_stream_writable.js
+1-1Lines changed: 1 addition & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.