Skip to content

Commit

Permalink
Remove RuboCop < 1.44 workaround
Browse files Browse the repository at this point in the history
Minimum version is currently 1.48
  • Loading branch information
Earlopain committed Aug 24, 2024
1 parent 6f170ac commit 8222362
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/rubocop/cop/performance/redundant_merge.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 8222362

Please sign in to comment.