lib/scss_lint/linter/declaration_order.rb in scss-lint-0.28.0 vs lib/scss_lint/linter/declaration_order.rb in scss-lint-0.29.0
- old
+ new
@@ -9,10 +9,10 @@
Sass::Tree::RuleNode,
]
def visit_rule(node)
children = node.children.select { |n| important_node?(n) }
- .map { |n| n.class }
+ .map(&:class)
sorted_children = children.sort do |a, b|
DECLARATION_ORDER.index(a) <=> DECLARATION_ORDER.index(b)
end