Use conditional operator
* lib/net/http.rb (Net::HTTP#proxy): use conditional operator to get rid of confusing ruby-mode.el. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55519 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0e585b37ec
commit
8ff99deda9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user