diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-06-14 16:51:53 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-06-15 07:01:28 +0900 |
commit | 827d66266be9feff10f71dd26fa04227423d134a (patch) | |
tree | 64c705a312adadc0daf2e8496583dd3f2776bec8 /lib/bundler/match_platform.rb | |
parent | 503b9bf1d4f6c9ef168a2dcd16e01b2e376a305f (diff) | |
download | ruby-827d66266be9feff10f71dd26fa04227423d134a.tar.gz |
[rubygems/rubygems] auto-correct Style/YodaCondition
https://github.com/rubygems/rubygems/commit/6d9e8025dc
Diffstat (limited to 'lib/bundler/match_platform.rb')
-rw-r--r-- | lib/bundler/match_platform.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/match_platform.rb b/lib/bundler/match_platform.rb index 7f7e8227f9..ece9fb8679 100644 --- a/lib/bundler/match_platform.rb +++ b/lib/bundler/match_platform.rb @@ -12,7 +12,7 @@ module Bundler def self.platforms_match?(gemspec_platform, local_platform) return true if gemspec_platform.nil? - return true if Gem::Platform::RUBY == gemspec_platform + return true if gemspec_platform == Gem::Platform::RUBY return true if local_platform == gemspec_platform gemspec_platform = Gem::Platform.new(gemspec_platform) return true if gemspec_platform === local_platform |