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

Commits on Apr 19, 2021

  1. 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: 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>
    michaelrommel authored and Trott committed Apr 19, 2021
    Configuration menu
    Copy the full SHA
    36decec View commit details
    Browse the repository at this point in the history