lib/rubocop/cop/performance/redundant_merge.rb in rubocop-performance-1.21.1 vs lib/rubocop/cop/performance/redundant_merge.rb in rubocop-performance-1.22.0

- old
+ new

@@ -128,12 +128,10 @@ format(AREF_ASGN, receiver: receiver.source, key: key, value: value.source) end end def rewrite_with_modifier(node, parent, new_source) - # FIXME: `|| 2` can be removed when support is limited to RuboCop 1.44 or higher. - # https://github.com/rubocop/rubocop/commit/02d1e5b - indent = ' ' * (configured_indentation_width || 2) + indent = ' ' * configured_indentation_width padding = "\n#{indent + leading_spaces(node)}" new_source.gsub!("\n", padding) format(WITH_MODIFIER_CORRECTION, keyword: parent.loc.keyword.source, condition: parent.condition.source,