mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
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:
1 parent
41aac465cc
commit
d1fd3f27e4
1 file changed
+2
-2
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user