summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorMichael Rommel <rommel@layer-7.net>2021-04-19 12:03:51 +0200
committerRich Trott <rtrott@gmail.com>2021-04-19 05:33:28 -0700
commit36decec87f7b942146d13cdca7c609dfdb9f847d (patch)
treeb0e3be5310dd8ac9d3a2f96d91715a71f04299f2 /.github
parent13d0de5954da3b28aba63d39ec77198ecc02dee0 (diff)
downloadnode-new-36decec87f7b942146d13cdca7c609dfdb9f847d.tar.gz
doc: remove superfluous await from fsPromises.readdir example
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: https://github.com/nodejs/help/issues/3317 PR-URL: https://github.com/nodejs/node/pull/38293 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Diffstat (limited to '.github')
0 files changed, 0 insertions, 0 deletions