Unverified Commit e68b0d6f authored by Ruben Bridgewater's avatar Ruben Bridgewater
Browse files

path: simplify code and remove obsolete checks

Either `end` is `-1` or `startPart` is not `0`. Therefore it's
possible to move the conditions in a way that we eliminate a few code
branches.

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


Reviewed-By: default avatarMichaël Zasso <targos@protonmail.com>
parent e750e958
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