[rubygems/rubygems] auto-correct Style/YodaCondition

6d9e8025dc
This commit is contained in:
Hiroshi SHIBATA 2023-06-14 16:51:53 +09:00
parent 503b9bf1d4
commit 827d66266b
9 changed files with 9 additions and 9 deletions

View file

@ -76,7 +76,7 @@ class Gem::BasicSpecification
elsif missing_extensions?
@ignored = true
if Gem::Platform::RUBY == platform || Gem::Platform.local === platform
if platform == Gem::Platform::RUBY || Gem::Platform.local === platform
warn "Ignoring #{full_name} because its extensions are not built. " \
"Try: gem pristine #{name} --version #{version}"
end