Skip to content

Commit adb93f1

Browse files
bzozcodebytere
authored andcommittedJul 8, 2020
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 <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent 1b76377 commit adb93f1

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
@@ -267,7 +267,8 @@ function preprocessSymlinkDestination(path, type, linkPath) {
267267
if (!isWindows) {
268268
// No preprocessing is needed on Unix.
269269
return path;
270-
} else if (type === 'junction') {
270+
}
271+
if (type === 'junction') {
271272
// Junctions paths need to be absolute and \\?\-prefixed.
272273
// A relative target is relative to the link's parent directory.
273274
path = pathModule.resolve(linkPath, '..', path);

0 commit comments

Comments
 (0)
Please sign in to comment.