Skip to content

Business intelligence made simple

Updated style

Andrew Kane8070782ad271
diff --git a/lib/blazer/slack_notifier.rb b/lib/blazer/slack_notifier.rb
index 0c31da75..884077d7 100644
--- a/lib/blazer/slack_notifier.rb
+++ b/lib/blazer/slack_notifier.rb
@@ -75,11 +75,11 @@ module Blazer
}
post_api("https://slack.com/api/chat.postMessage", payload, headers)
else
- post_api(Blazer.slack_webhook_url, payload)
+ post_api(Blazer.slack_webhook_url, payload, {})
end
end
- def self.post_api(url, payload, headers = {})
+ def self.post_api(url, payload, headers)
uri = URI.parse(url)
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true