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 Danielle Adams committed 2022-02-26 15:33:03 -05:00
1 parent 1128b1c216
commit ff0069dc3e
1 file changed
+1 -1
+1 -1
View File
@@ -1000,7 +1000,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);
}
});