From 8900a4663f45d047894b98875f58529f6026746e Mon Sep 17 00:00:00 2001 From: Maledong Date: Fri, 3 Sep 2021 21:14:25 +0800 Subject: [PATCH] lib: remove useless statement MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There's no need to set 'false' to 'isAsync' because we've declared it before. PR-URL: https://github.com/nodejs/node/pull/39983 Reviewed-By: Luigi Pinca Reviewed-By: Tobias Nießen Reviewed-By: James M Snell Reviewed-By: Darshan Sen --- lib/internal/streams/from.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/streams/from.js b/lib/internal/streams/from.js index 906ddcf9af844b..d3d43f7dfbb8ec 100644 --- a/lib/internal/streams/from.js +++ b/lib/internal/streams/from.js @@ -25,7 +25,7 @@ function from(Readable, iterable, opts) { }); } - let isAsync = false; + let isAsync; if (iterable && iterable[SymbolAsyncIterator]) { isAsync = true; iterator = iterable[SymbolAsyncIterator]();