diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-03-16 14:06:47 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-03-17 18:50:55 +0900 |
commit | 2db767382527485339a36eea1f0e581c9dca2cfb (patch) | |
tree | 3e0b08048b3e7eb3b09bc6062b07d5778f1c933e /lib/rubygems.rb | |
parent | be4cc74e26d463358c121820fb6f918b9b8de92d (diff) |
[rubygems/rubygems] util/rubocop -A --only Style/DoubleNegation
https://github.com/rubygems/rubygems/commit/01c2b5542f
Diffstat (limited to 'lib/rubygems.rb')
-rw-r--r-- | lib/rubygems.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems.rb b/lib/rubygems.rb index 619ed385f7..d1d40429e7 100644 --- a/lib/rubygems.rb +++ b/lib/rubygems.rb @@ -983,7 +983,7 @@ An Array (#{env.inspect}) was passed in from #{caller[3]} def self.win_platform? if @@win_platform.nil? ruby_platform = RbConfig::CONFIG["host_os"] - @@win_platform = !!WIN_PATTERNS.find {|r| ruby_platform =~ r } + @@win_platform = !WIN_PATTERNS.find {|r| ruby_platform =~ r }.nil? end @@win_platform |