summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/net/http.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb
index 873d731a3a..326d737692 100644
--- a/lib/net/http.rb
+++ b/lib/net/http.rb
@@ -1039,11 +1039,7 @@ module Net #:nodoc:
# True if requests for this connection will be proxied
def proxy?
- !!if @proxy_from_env then
- proxy_uri
- else
- @proxy_address
- end
+ !!(@proxy_from_env ? proxy_uri : @proxy_address)
end
# True if the proxy for this connection is determined from the environment