lib/scss_lint/linter/mergeable_selector.rb in scss-lint-0.24.0 vs lib/scss_lint/linter/mergeable_selector.rb in scss-lint-0.24.1
- old
+ new
@@ -46,9 +46,10 @@
def node_rule(node)
node.rule.join
end
def single_rule?(node)
+ return unless node.parsed_rules
node.parsed_rules.members.count == 1
end
def subrule?(rule1, rule2)
"#{rule1}".start_with?("#{rule2} ") ||