ruby-changes:26114
From: naruse <ko1@a...>
Date: Tue, 4 Dec 2012 10:02:26 +0900 (JST)
Subject: [ruby-changes:26114] naruse:r38172 (trunk): Suppress warning: uninitialized variable [Bug #7494]
naruse 2012-12-04 10:01:37 +0900 (Tue, 04 Dec 2012) New Revision: 38172 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38172 Log: Suppress warning: uninitialized variable [ruby-core:50470] [Bug #7494] Conditional operator is required to return true or false. Modified files: trunk/lib/net/http.rb Index: lib/net/http.rb =================================================================== --- lib/net/http.rb (revision 38171) +++ lib/net/http.rb (revision 38172) @@ -984,7 +984,7 @@ 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. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/