From 18d2714cc5eb3e0e5a705866b4c61a6abec62020 Mon Sep 17 00:00:00 2001 From: Giora Guttsait Date: Wed, 19 Jan 2022 13:55:29 +0200 Subject: [PATCH] doc: remove redunant `await` calls from stream docs --- 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 43e5da5206b67e..6444df9f3fcec3 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',