Skip to content

Commit

Permalink
lib: remove useless statement
Browse files Browse the repository at this point in the history
There's no need to set 'false' to 'isAsync' because we've declared it
before.

PR-URL: #39983
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
  • Loading branch information
Maledong authored and BethGriggs committed Sep 21, 2021
1 parent 6085280 commit dd50b91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/streams/from.js
Expand Up @@ -25,7 +25,7 @@ function from(Readable, iterable, opts) {
});
}

let isAsync = false;
let isAsync;
if (iterable && iterable[SymbolAsyncIterator]) {
isAsync = true;
iterator = iterable[SymbolAsyncIterator]();
Expand Down

0 comments on commit dd50b91

Please sign in to comment.