summaryrefslogtreecommitdiff
path: root/lib/rubygems/request.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2023-03-16 13:58:06 +0900
committerHiroshi SHIBATA <[email protected]>2023-03-17 18:50:55 +0900
commit7800d4eeb5cfcd367a596044c183c547642066e2 (patch)
tree49ea5af1bb532e9ff247ec414aedd89291849003 /lib/rubygems/request.rb
parentf8fe151ca99233e7d133e2952f9b989c5290c825 (diff)
util/rubocop -A --only Style/MultipleComparison
Diffstat (limited to 'lib/rubygems/request.rb')
-rw-r--r--lib/rubygems/request.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/request.rb b/lib/rubygems/request.rb
index 82c7f2b297..8d3cfd06e1 100644
--- a/lib/rubygems/request.rb
+++ b/lib/rubygems/request.rb
@@ -171,7 +171,7 @@ class Gem::Request
no_env_proxy = env_proxy.nil? || env_proxy.empty?
if no_env_proxy
- return _scheme == "https" || _scheme == "http" ?
+ return ["https", "http"].include?(_scheme) ?
:no_proxy : get_proxy_from_env("http")
end