GeezerVison is showing github.com — doc: remove redunant `await` calls from stream docs · nodejs/node@f33e831
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/api/stream.md +2-2Lines changed: 2 additions & 2 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1716,7 +1716,7 @@ for await (const item of Readable.from([1, 2, 3, 4]).map((x) => x * 2)) { |
1716 | 1716 | } |
1717 | 1717 | // With an asynchronous mapper, making at most 2 queries at a time. |
1718 | 1718 | const resolver = new Resolver(); |
1719 | | -const dnsResults = await Readable.from([ |
| 1719 | +const dnsResults = Readable.from([ |
1720 | 1720 | 'nodejs.org', |
1721 | 1721 | 'openjsf.org', |
1722 | 1722 | 'www.linuxfoundation.org', |
@@ -1761,7 +1761,7 @@ for await (const item of Readable.from([1, 2, 3, 4]).filter((x) => x > 2)) { |
1761 | 1761 | } |
1762 | 1762 | // With an asynchronous predicate, making at most 2 queries at a time. |
1763 | 1763 | const resolver = new Resolver(); |
1764 | | -const dnsResults = await Readable.from([ |
| 1764 | +const dnsResults = Readable.from([ |
1765 | 1765 | 'nodejs.org', |
1766 | 1766 | 'openjsf.org', |
1767 | 1767 | 'www.linuxfoundation.org', |
|