From adb93f153ba1971c715204ce97d2aa5e02bdd87a Mon Sep 17 00:00:00 2001 From: Bartosz Sosnowski Date: Thu, 21 May 2020 14:15:37 +0200 Subject: [PATCH] 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 Reviewed-By: James M Snell Reviewed-By: Ruben Bridgewater --- lib/internal/fs/utils.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/internal/fs/utils.js b/lib/internal/fs/utils.js index 989bccc7c153d3..b8ec0726885669 100644 --- a/lib/internal/fs/utils.js +++ b/lib/internal/fs/utils.js @@ -267,7 +267,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);