lib/rubocop/cop/style/command_literal.rb in rubocop-0.48.0 vs lib/rubocop/cop/style/command_literal.rb in rubocop-0.48.1
- old
+ new
@@ -103,10 +103,10 @@
return if contains_backtick?(node)
replacement = if backtick_literal?(node)
['%x', ''].zip(preferred_delimiters).map(&:join)
else
- %w(` `)
+ %w[` `]
end
lambda do |corrector|
corrector.replace(node.loc.begin, replacement.first)
corrector.replace(node.loc.end, replacement.last)