Skip to content

Commit c601fea

Browse files
committed
Remove classCache check
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.
1 parent 58cc7ed commit c601fea

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/lib/generateRules.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -686,10 +686,6 @@ function generateRules(candidates, context) {
686686
continue
687687
}
688688

689-
if (context.classCache.has(candidate)) {
690-
continue
691-
}
692-
693689
if (context.candidateRuleCache.has(candidate)) {
694690
allRules = allRules.concat(Array.from(context.candidateRuleCache.get(candidate)))
695691
continue

0 commit comments

Comments
 (0)