From 119519e1da2be1f180e8d66bd0bb79403624ea73 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/api/stream.md b/doc/api/stream.md index 43e5da5206b..6444df9f3fc 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -1771,7 +1771,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', @@ -1816,7 +1816,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', @@ -1874,7 +1874,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',