lib/rubocop/cop/lint/unneeded_splat_expansion.rb in rubocop-0.72.0 vs lib/rubocop/cop/lint/unneeded_splat_expansion.rb in rubocop-0.73.0
- old
+ new
@@ -58,10 +58,10 @@
PERCENT_CAPITAL_I = '%I'
ASSIGNMENT_TYPES = %i[lvasgn ivasgn cvasgn gvasgn].freeze
def_node_matcher :array_new?, '$(send (const nil? :Array) :new ...)'
- def_node_matcher :literal_expansion, <<-PATTERN
+ def_node_matcher :literal_expansion, <<~PATTERN
(splat {$({str dstr int float array} ...) (block $#array_new? ...) $#array_new?} ...)
PATTERN
def on_splat(node)
unneeded_splat_expansion(node) do