From f33e831fe3475c07158e191ef327901c4baa951c Mon Sep 17 00:00:00 2001 From: Giora Guttsait Date: Wed, 19 Jan 2022 16:22:43 +0200 Subject: [PATCH] doc: remove redunant `await` calls from stream docs PR-URL: https://github.com/nodejs/node/pull/41592 Reviewed-By: Benjamin Gruenbaum Reviewed-By: Nitzan Uziely Reviewed-By: Mestery Reviewed-By: Colin Ihrig --- doc/api/stream.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/stream.md b/doc/api/stream.md index f6cd6a5f05d257..60faf7d2058b02 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -1716,7 +1716,7 @@ for await (const item of Readable.from([1, 2, 3, 4]).map((x) => x * 2)) { } // With an asynchronous mapper, making at most 2 queries at a time. const resolver = new Resolver(); -const dnsResults = await Readable.from([ +const dnsResults = Readable.from([ 'nodejs.org', 'openjsf.org', 'www.linuxfoundation.org', @@ -1761,7 +1761,7 @@ for await (const item of Readable.from([1, 2, 3, 4]).filter((x) => x > 2)) { } // With an asynchronous predicate, making at most 2 queries at a time. const resolver = new Resolver(); -const dnsResults = await Readable.from([ +const dnsResults = Readable.from([ 'nodejs.org', 'openjsf.org', 'www.linuxfoundation.org',