lib/scss_lint/linter/border_zero.rb in scss-lint-0.23.1 vs lib/scss_lint/linter/border_zero.rb in scss-lint-0.24.0

- old
+ new

@@ -3,13 +3,12 @@ class Linter::BorderZero < Linter include LinterRegistry def visit_prop(node) return unless BORDER_PROPERTIES.include?(node.name.first.to_s) + return unless node.value.to_sass.strip == 'none' - if node.value.to_sass.strip == 'none' - add_lint(node, '`border: 0;` is preferred over `border: none;`') - end + add_lint(node, '`border: 0;` is preferred over `border: none;`') end private BORDER_PROPERTIES = %w[