Skip to content

fs: reduce redundant callback check

If options is a function, we don't need to call maybeCallback to check it again. https://github.com/nodejs/node/blob/4ac170251bc44563755576d8dea1f46c715bac8d/lib/fs.js#L130-L135

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Merge request reports

Loading