Skip to content

Commit

Permalink
Merge pull request #459 from Earlopain/rubocop-workaround
Browse files Browse the repository at this point in the history
Remove RuboCop < 1.44 workaround
  • Loading branch information
koic authored Aug 26, 2024
2 parents 4c4cacd + 8222362 commit b52d821
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 b52d821

Please sign in to comment.