Commit f54254af authored by Rich Trott's avatar Rich Trott
Browse files

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.

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


Reviewed-By: default avatarAnna Henningsen <anna@addaleax.net>
Reviewed-By: default avatarJuan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: default avatarGuy Bedford <guybedford@gmail.com>
parent 91272bce
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