lib/scss_lint/linter/shorthand.rb in scss_lint-0.55.0 vs lib/scss_lint/linter/shorthand.rb in scss_lint-0.56.0
- old
+ new
@@ -20,14 +20,14 @@
'forbidden since the `allowed_shorthands` option ' \
'is set to an empty list.')
end
- case node.value
+ case node.value.first
when Sass::Script::Tree::Literal
- check_script_literal(property_name, node.value)
+ check_script_literal(property_name, node.value.first)
when Sass::Script::Tree::ListLiteral
- check_script_list(property_name, node.value)
+ check_script_list(property_name, node.value.first)
end
end
private