summaryrefslogtreecommitdiff
path: root/lib/rubygems/commands/pristine_command.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2023-06-14 16:51:53 +0900
committerHiroshi SHIBATA <[email protected]>2023-06-15 07:01:28 +0900
commit827d66266be9feff10f71dd26fa04227423d134a (patch)
tree64c705a312adadc0daf2e8496583dd3f2776bec8 /lib/rubygems/commands/pristine_command.rb
parent503b9bf1d4f6c9ef168a2dcd16e01b2e376a305f (diff)
[rubygems/rubygems] auto-correct Style/YodaCondition
https://github.com/rubygems/rubygems/commit/6d9e8025dc
Diffstat (limited to 'lib/rubygems/commands/pristine_command.rb')
-rw-r--r--lib/rubygems/commands/pristine_command.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/commands/pristine_command.rb b/lib/rubygems/commands/pristine_command.rb
index fff59855f5..3dbbb3e50c 100644
--- a/lib/rubygems/commands/pristine_command.rb
+++ b/lib/rubygems/commands/pristine_command.rb
@@ -121,7 +121,7 @@ extensions will be restored.
end.flatten
end
- specs = specs.select {|spec| RUBY_ENGINE == spec.platform || Gem::Platform.local === spec.platform || spec.platform == Gem::Platform::RUBY }
+ specs = specs.select {|spec| spec.platform == RUBY_ENGINE || Gem::Platform.local === spec.platform || spec.platform == Gem::Platform::RUBY }
if specs.to_a.empty?
raise Gem::Exception,