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:
Rich Trott authored and Beth Griggs committed 2022-01-24 17:35:37 +00:00
1 parent 5c700fa8e2
commit cb4dbc10bc
1 file changed
+1 -1
+1 -1
View File
@@ -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);
}
});