Skip to content

Commit 2c03661

Browse files
bzozcodebytere
authored andcommitted
fs: unify style in preprocessSymlinkDestination
Removes the else after return to match rest of the style of the function. PR-URL: #33496 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent 22b5ec1 commit 2c03661

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/internal/fs/utils.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,8 @@ function preprocessSymlinkDestination(path, type, linkPath) {
296296
if (!isWindows) {
297297
// No preprocessing is needed on Unix.
298298
return path;
299-
} else if (type === 'junction') {
299+
}
300+
if (type === 'junction') {
300301
// Junctions paths need to be absolute and \\?\-prefixed.
301302
// A relative target is relative to the link's parent directory.
302303
path = pathModule.resolve(linkPath, '..', path);

0 commit comments

Comments
 (0)