From 822236256efa78bde6b023a9f709ef55db8eb086 Mon Sep 17 00:00:00 2001 From: Earlopain <14981592+Earlopain@users.noreply.github.com> Date: Sat, 24 Aug 2024 11:36:06 +0200 Subject: [PATCH] Remove RuboCop < 1.44 workaround Minimum version is currently 1.48 --- lib/rubocop/cop/performance/redundant_merge.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/rubocop/cop/performance/redundant_merge.rb b/lib/rubocop/cop/performance/redundant_merge.rb index 3a18bdf210..7e6060ef1b 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)