From 6b4ea9f5f09db7e440883a87e4627c349b6f7f4e Mon Sep 17 00:00:00 2001 From: AdriAt360 Date: Thu, 2 Jun 2022 13:26:40 +0200 Subject: [PATCH] refactor: remove redundant `else` --- src/rules/no-restricted-paths.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/rules/no-restricted-paths.js b/src/rules/no-restricted-paths.js index 9fd43416a5..fa906c1671 100644 --- a/src/rules/no-restricted-paths.js +++ b/src/rules/no-restricted-paths.js @@ -203,9 +203,8 @@ module.exports = { if (isGlobPattern) { return computeGlobPatternPathValidator(absoluteFrom, zoneExcept); - } else { - return computeAbsolutePathValidator(absoluteFrom, zoneExcept); } + return computeAbsolutePathValidator(absoluteFrom, zoneExcept); }); };