lib/scss_lint/linter/declaration_order.rb in scss-lint-0.13.0 vs lib/scss_lint/linter/declaration_order.rb in scss-lint-0.14.0

- old
+ new

@@ -8,11 +8,11 @@ Sass::Tree::PropNode, Sass::Tree::RuleNode, ] def visit_rule(node) - children = node.children.select { |node| important_node?(node) }. - map { |node| node.class } + children = node.children.select { |n| important_node?(n) } + .map { |n| n.class } sorted_children = children.sort do |a, b| DECLARATION_ORDER.index(a) <=> DECLARATION_ORDER.index(b) end