Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: remove superfluous await from fsPromises.readdir example #38293

Merged
merged 1 commit into from
Apr 19, 2021
Merged

doc: remove superfluous await from fsPromises.readdir example #38293

merged 1 commit into from
Apr 19, 2021

Conversation

michaelrommel
Copy link
Contributor

The await operator in the example, iterating over the returned array
of filenames is not necessary, since the returned array is either
consisting of strings or of fs.Dirent objects, neither providing
an asyncIterator.

Refs: nodejs/help#3317

@nodejs-github-bot nodejs-github-bot added doc Issues and PRs related to the documentations. fs Issues and PRs related to the fs subsystem / file system. labels Apr 19, 2021
@Trott Trott added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Apr 19, 2021
@Trott
Copy link
Member

Trott commented Apr 19, 2021

Collaboratros: 👍 to fast-track?

@Trott Trott added the fast-track PRs that do not need to wait for 48 hours to land. label Apr 19, 2021
The `await` operator in the example, iterating over the returned array
of filenames is not necessary, since the returned array is either
consisting of `string`s or of `fs.Dirent` objects, neither providing
an asyncIterator.

Refs: nodejs/help#3317

PR-URL: #38293
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
@Trott Trott merged commit 36decec into nodejs:master Apr 19, 2021
@Trott
Copy link
Member

Trott commented Apr 19, 2021

Landed in 36decec.

Thanks for the contribution! 🎉

targos pushed a commit that referenced this pull request Sep 4, 2021
The `await` operator in the example, iterating over the returned array
of filenames is not necessary, since the returned array is either
consisting of `string`s or of `fs.Dirent` objects, neither providing
an asyncIterator.

Refs: nodejs/help#3317

PR-URL: #38293
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. doc Issues and PRs related to the documentations. fast-track PRs that do not need to wait for 48 hours to land. fs Issues and PRs related to the fs subsystem / file system.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants