From 76427185b3dddfc9901dc2cbe5f1f7a6c9af661c Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Tue, 15 Nov 2016 15:13:44 -0800 Subject: fix Style/NilComparison Signed-off-by: Lamont Granquist --- lib/chef/http/basic_client.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/chef/http') diff --git a/lib/chef/http/basic_client.rb b/lib/chef/http/basic_client.rb index 460744ea2a..9a000136e6 100644 --- a/lib/chef/http/basic_client.rb +++ b/lib/chef/http/basic_client.rb @@ -111,7 +111,7 @@ class Chef # match no_proxy with a fuzzy matcher, rather than letting Net::HTTP # do it. http_client = http_client_builder.new(host, port, nil) - http_client.proxy_port = nil if http_client.proxy_address == nil + http_client.proxy_port = nil if http_client.proxy_address.nil? if url.scheme == HTTPS configure_ssl(http_client) -- cgit v1.2.1