mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05: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:
1 parent
53e29e404a
commit
837eb2af49
1 file changed
+2
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user