Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
doc: adjust assignment in condition in stream doc
This is part of an effort to get our code to comply with ESLint
no-cond-assign so that we don't have to disable that rule in our config.
  • Loading branch information
Trott committed Jan 14, 2022
commit 89db1fe492a028a14082dba140779d072f4fab20
2 changes: 1 addition & 1 deletion doc/api/stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,7 @@ readable.on('readable', function() {
// There is some data to read now.
let data;

while (data = this.read()) {
while ((data = this.read()) !== null) {
console.log(data);
}
});
Expand Down