Skip to content

Commit

Permalink
refactor: remove redundant else
Browse files Browse the repository at this point in the history
  • Loading branch information
AdriAt360 committed Jun 2, 2022
1 parent 76883fd commit 6b4ea9f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/rules/no-restricted-paths.js
Expand Up @@ -203,9 +203,8 @@ module.exports = {

if (isGlobPattern) {
return computeGlobPatternPathValidator(absoluteFrom, zoneExcept);
} else {
return computeAbsolutePathValidator(absoluteFrom, zoneExcept);
}
return computeAbsolutePathValidator(absoluteFrom, zoneExcept);
});
};

Expand Down

0 comments on commit 6b4ea9f

Please sign in to comment.