stream: remove redundant context from comments

Using the variable name in the comment and justifying the type seems
redundant to me and instead it should defined the entity which it is
acting, like in our case it is acting as a flag to control the flow in
streams.

PR-URL: https://github.com/nodejs/node/pull/35728
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
This commit is contained in:
Yash Ladha authored and Beth Griggs committed 2020-12-15 20:13:07 +00:00
1 parent 41aac465cc
commit d1fd3f27e4
1 file changed
+2 -2
+2 -2
View File
@@ -38,11 +38,11 @@ function from(Readable, iterable, opts) {
...opts
});
// Reading boolean to protect against _read
// Flag to protect against _read
// being called before last iteration completion.
let reading = false;
// needToClose boolean if iterator needs to be explicitly closed
// Flag for when iterator needs to be explicitly closed.
let needToClose = false;
readable._read = function() {