diff --git a/lib/rubocop/cop/performance/redundant_merge.rb b/lib/rubocop/cop/performance/redundant_merge.rb index 3a18bdf21..7e6060ef1 100644 --- a/lib/rubocop/cop/performance/redundant_merge.rb +++ b/lib/rubocop/cop/performance/redundant_merge.rb @@ -130,9 +130,7 @@ def to_assignments(receiver, pairs) 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)