diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-04 01:01:37 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-04 01:01:37 +0000 |
commit | 51ee08fd7128639ecb82997612b028ba94ba8c3d (patch) | |
tree | 4c5ce131978e560063097107e47fb9485a6ade85 /lib/net/http.rb | |
parent | f68ab200449715adbe11d78cd028592410dd4b4c (diff) | |
download | ruby-51ee08fd7128639ecb82997612b028ba94ba8c3d.tar.gz |
Suppress warning: uninitialized variable [ruby-core:50470] [Bug #7494]
Conditional operator is required to return true or false.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/net/http.rb')
-rw-r--r-- | lib/net/http.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb index d6a668e6ff..87cebb4a0c 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -984,7 +984,7 @@ module Net #:nodoc: class << HTTP # returns true if self is a class which was created by HTTP::Proxy. def proxy_class? - @is_proxy_class + defined?(@is_proxy_class) ? @is_proxy_class : false end # Address of proxy host. If Net::HTTP does not use a proxy, nil. |