Skip to content
This repository was archived by the owner on Feb 18, 2022. It is now read-only.

Commit 16ff3c2

Browse files
committed
Remove useless test about rule being a rule
rule (eachRule) are obviously rule right?
1 parent 4e828df commit 16ff3c2

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

index.js

-3
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ module.exports = function(options) {
2828
// define variables
2929
style.eachRule(function(rule) {
3030
var toRemove = []
31-
if (rule.type !== "rule") {
32-
return
33-
}
3431

3532
// only variables declared for `:root` are supported for now
3633
if (rule.selectors.length !== 1 || rule.selectors[0] !== ":root" || rule.parent.type !== "root") {

0 commit comments

Comments
 (0)