[rubygems/rubygems] Removed rubocop:disable detected by Lint/RedundantCopDisableDirective

https://github.com/rubygems/rubygems/commit/07b0da6c24
This commit is contained in:
Hiroshi SHIBATA 2023-03-16 10:52:25 +09:00
parent 2dddac0475
commit 2eb99350f4

View File

@ -461,7 +461,7 @@ class Gem::Command
until extra.empty? do until extra.empty? do
ex = [] ex = []
ex << extra.shift ex << extra.shift
ex << extra.shift if extra.first.to_s =~ /^[^-]/ # rubocop:disable Performance/StartWith ex << extra.shift if extra.first.to_s =~ /^[^-]/
result << ex if handles?(ex) result << ex if handles?(ex)
end end