errors: simplify ERR_REQUIRE_ESM message generation
Because of the condition that starts the if
block, we know that
parentPath
must be truthy. So there is no need to check for that in
the template string that generates the error message.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines