Unverified Commit 1cdeb9f9 authored by Ruben Bridgewater's avatar Ruben Bridgewater
Browse files

fs: improve mode validation

Do not return a default mode in case invalid mode values are provided.
This strictens and simplifies the function by reusing existing
functionality.

PR-URL: https://github.com/nodejs/node/pull/26575


Reviewed-By: default avatarMatteo Collina <matteo.collina@gmail.com>
Reviewed-By: default avatarRich Trott <rtrott@gmail.com>
Reviewed-By: default avatarMasashi Hirano <shisama07@gmail.com>
Reviewed-By: default avatarRod Vagg <rod@vagg.org>
parent 6f77af54
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment