bin/check-http-json.rb in sensu-plugins-http-0.1.1 vs bin/check-http-json.rb in sensu-plugins-http-0.1.2
- old
+ new
@@ -62,10 +62,10 @@
config[:query] = uri.query
config[:port] = uri.port
config[:ssl] = uri.scheme == 'https'
else
# #YELLOW
- unless config[:host] && config[:path] # rubocop:disable IfUnlessModifier
+ unless config[:host] && config[:path]
unknown 'No URL specified'
end
config[:port] ||= config[:ssl] ? 443 : 80
end