mirror of
https://github.com/nodejs/node.git
synced 2024-11-29 07:00:59 +01:00
fs: unify style in preprocessSymlinkDestination
Removes the else after return to match rest of the style of the function. PR-URL: https://github.com/nodejs/node/pull/33496 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
parent
842a895ebf
commit
4a911d46fe
@ -296,7 +296,8 @@ function preprocessSymlinkDestination(path, type, linkPath) {
|
||||
if (!isWindows) {
|
||||
// No preprocessing is needed on Unix.
|
||||
return path;
|
||||
} else if (type === 'junction') {
|
||||
}
|
||||
if (type === 'junction') {
|
||||
// Junctions paths need to be absolute and \\?\-prefixed.
|
||||
// A relative target is relative to the link's parent directory.
|
||||
path = pathModule.resolve(linkPath, '..', path);
|
||||
|
Loading…
Reference in New Issue
Block a user