Skip to content

Commit f33e831

Browse files
gioraguttdanielleadams
authored andcommitted
doc: remove redunant await calls from stream docs
PR-URL: #41592 Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Nitzan Uziely <[email protected]> Reviewed-By: Mestery <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent 227dea8 commit f33e831

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/stream.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1716,7 +1716,7 @@ for await (const item of Readable.from([1, 2, 3, 4]).map((x) => x * 2)) {
17161716
}
17171717
// With an asynchronous mapper, making at most 2 queries at a time.
17181718
const resolver = new Resolver();
1719-
const dnsResults = await Readable.from([
1719+
const dnsResults = Readable.from([
17201720
'nodejs.org',
17211721
'openjsf.org',
17221722
'www.linuxfoundation.org',
@@ -1761,7 +1761,7 @@ for await (const item of Readable.from([1, 2, 3, 4]).filter((x) => x > 2)) {
17611761
}
17621762
// With an asynchronous predicate, making at most 2 queries at a time.
17631763
const resolver = new Resolver();
1764-
const dnsResults = await Readable.from([
1764+
const dnsResults = Readable.from([
17651765
'nodejs.org',
17661766
'openjsf.org',
17671767
'www.linuxfoundation.org',

0 commit comments

Comments
 (0)