Skip to content

Commit aeb47a7

Browse files
committed
empty? -> nil?
1 parent 8b6b236 commit aeb47a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/ld-eventsource/client.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ def initialize(uri,
143143
:proxy_address => @proxy.host,
144144
:proxy_port => @proxy.port,
145145
}
146-
base_http_client_options["proxy"][:proxy_username] = @proxy.user unless @proxy.user.empty?
147-
base_http_client_options["proxy"][:proxy_password] = @proxy.password unless @proxy.password.empty?
146+
base_http_client_options["proxy"][:proxy_username] = @proxy.user unless @proxy.user.nil?
147+
base_http_client_options["proxy"][:proxy_password] = @proxy.password unless @proxy.password.nil?
148148
end
149149

150150
options = http_client_options.is_a?(Hash) ? base_http_client_options.merge(http_client_options) : base_http_client_options

0 commit comments

Comments
 (0)