diff options
author | Hiroshi SHIBATA <[email protected]> | 2025-03-27 15:05:44 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2025-03-27 16:57:10 +0900 |
commit | 62a026a425560f534d6e99bd2f3adf90ff6f101b (patch) | |
tree | d447947aa8b4045493257d426dd2445bc1eda2f5 | |
parent | c9e07da51d9780cb4bb4c670938675b2fad65e34 (diff) |
[rubygems/rubygems] Fix Style/RedundantParentheses by bin/rubocop -a
https://github.com/rubygems/rubygems/commit/4bbf02493e
-rw-r--r-- | lib/rubygems/defaults.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/defaults.rb b/lib/rubygems/defaults.rb index 1bd208feb9..db07681a17 100644 --- a/lib/rubygems/defaults.rb +++ b/lib/rubygems/defaults.rb @@ -239,7 +239,7 @@ module Gem # Enables automatic installation into user directory def self.default_user_install # :nodoc: - if !ENV.key?("GEM_HOME") && (File.exist?(Gem.dir) && !File.writable?(Gem.dir)) + if !ENV.key?("GEM_HOME") && File.exist?(Gem.dir) && !File.writable?(Gem.dir) Gem.ui.say "Defaulting to user installation because default installation directory (#{Gem.dir}) is not writable." return true end |