Skip to content

Commit

Permalink
Remove classCache check
Browse files Browse the repository at this point in the history
It’s no longer necessary. If we have an entry in the `candidateRuleCache` then it’ll also be in the class cache and vice-versa. Also, we weren’t adding rules when hitting that cache like we should’ve been.
  • Loading branch information
thecrypticace committed Aug 29, 2022
1 parent 58cc7ed commit c601fea
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/lib/generateRules.js
Expand Up @@ -686,10 +686,6 @@ function generateRules(candidates, context) {
continue
}

if (context.classCache.has(candidate)) {
continue
}

if (context.candidateRuleCache.has(candidate)) {
allRules = allRules.concat(Array.from(context.candidateRuleCache.get(candidate)))
continue
Expand Down

0 comments on commit c601fea

Please sign in to comment.