Skip to content

Commit

Permalink
prefer Array#<< to creating a new array
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed Aug 26, 2020
1 parent 34748ac commit 74613ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/loofah/html5/scrub.rb
Expand Up @@ -91,7 +91,7 @@ def scrub_css(style)
end
end.compact
unless value.empty?
value += [CSS_IMPORTANT] if node[:important]
value << CSS_IMPORTANT if node[:important]
propstring = sprintf "%s:%s", name, value.join(" ")
sanitized_node = Crass.parse_properties(propstring).first
sanitized_tree << sanitized_node << CRASS_SEMICOLON
Expand Down

0 comments on commit 74613ba

Please sign in to comment.