use better name

This commit is contained in:
Robin Malfait 2021-12-17 22:28:58 +01:00
parent b8f010a9ef
commit e8e64f0ff4
No known key found for this signature in database
GPG key ID: 92F53D68B9041AFE

View file

@ -297,7 +297,7 @@ function processApply(root, context) {
// would have replaced this with something that didn't exist and
// therefore it removed the selector altogether. In this specific
// case it would result in `{}` instead of `.something-unrelated {}`
if (!extractClasses(rule).some((thing) => thing === applyCandidate)) {
if (!extractClasses(rule).some((candidate) => candidate === applyCandidate)) {
rule.remove()
return
}