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); }); };