path: simplify normalizeString
This improves the `path.normalize()` and `path.resolve()` performance a tiny bit. One statement could never be truthy, another check could be simplified and `code` is now monomorphic. PR-URL: https://github.com/nodejs/node/pull/27240 Reviewed-By:Yongsheng Zhang <zyszys98@gmail.com> Reviewed-By:
Luigi Pinca <luigipinca@gmail.com>
parent
4f8b4979
Please register or sign in to comment