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 targos committed Sep 18, 2021
1 parent e62d464 commit 8900a46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/streams/from.js
Original file line number Diff line number Diff line change
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 8900a46

Please sign in to comment.