fix(alerting): gofmt

This commit is contained in:
bergquist
2016-08-08 14:46:47 +02:00
parent e044a65d08
commit d6fdb598b0
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ func (this *SlackNotifier) Notify(context *alerting.EvalContext) {
body := map[string]interface{}{ body := map[string]interface{}{
"attachments": []map[string]interface{}{ "attachments": []map[string]interface{}{
map[string]interface{}{ {
"color": context.GetColor(), "color": context.GetColor(),
//"pretext": "Optional text that appears above the attachment block", //"pretext": "Optional text that appears above the attachment block",
// "author_name": "Bobby Tables", // "author_name": "Bobby Tables",
+1 -1
View File
@@ -67,7 +67,7 @@ func sendWebRequest(webhook *Webhook) error {
} }
if resp.StatusCode != 200 { if resp.StatusCode != 200 {
return fmt.Errorf("Webhook response code %s", resp.StatusCode) return fmt.Errorf("Webhook response code %v", resp.StatusCode)
} }
defer resp.Body.Close() defer resp.Body.Close()