summaryrefslogtreecommitdiff
path: root/deps/npm/man/man1/npm-prefix.1
diff options
context:
space:
mode:
authorVoltrex <62040526+VoltrexMaster@users.noreply.github.com>2021-05-10 01:24:43 +0430
committerJames M Snell <jasnell@gmail.com>2021-05-12 07:26:22 -0700
commit89f592cc82cd5c71d0e2389b75c1d36bbcd83c51 (patch)
tree5a876c87fbc2a655507571f12d3371c543f661b1 /deps/npm/man/man1/npm-prefix.1
parentd206aa36e27e212d00857ab56d174ace5e6b6c45 (diff)
downloadnode-new-89f592cc82cd5c71d0e2389b75c1d36bbcd83c51.tar.gz
path: inline conditions
This condition can be inlined in the first `if` statement since if the `path`'s length is 0, it'll be a empty string so we can return that as there's no need for an extra `if` statement. PR-URL: https://github.com/nodejs/node/pull/38613 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'deps/npm/man/man1/npm-prefix.1')
0 files changed, 0 insertions, 0 deletions