Skip to content
Permalink
Browse files
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>
  • Loading branch information
bzoz authored and codebytere committed Jun 18, 2020
1 parent 22b5ec1 commit 2c03661860ba1a4f89096c19ed2eb73b9eada58e
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/internal/fs/utils.js
@@ -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);

0 comments on commit 2c03661

Please sign in to comment.