mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
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. PR-URL: https://github.com/nodejs/node/pull/41510 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
This commit is contained in:
1 parent
5c700fa8e2
commit
cb4dbc10bc
1 file changed
+1
-1
+1
-1
@@ -1002,7 +1002,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);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user