From d6fdb598b0a30c412de8b1f1dab9304614fdac24 Mon Sep 17 00:00:00 2001 From: bergquist Date: Mon, 8 Aug 2016 14:46:47 +0200 Subject: [PATCH] fix(alerting): gofmt --- pkg/services/alerting/notifiers/slack.go | 2 +- pkg/services/notifications/webhook.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/services/alerting/notifiers/slack.go b/pkg/services/alerting/notifiers/slack.go index 361dbb05ba5..0bc643212bd 100644 --- a/pkg/services/alerting/notifiers/slack.go +++ b/pkg/services/alerting/notifiers/slack.go @@ -60,7 +60,7 @@ func (this *SlackNotifier) Notify(context *alerting.EvalContext) { body := map[string]interface{}{ "attachments": []map[string]interface{}{ - map[string]interface{}{ + { "color": context.GetColor(), //"pretext": "Optional text that appears above the attachment block", // "author_name": "Bobby Tables", diff --git a/pkg/services/notifications/webhook.go b/pkg/services/notifications/webhook.go index d1e576d9321..31f00baebd3 100644 --- a/pkg/services/notifications/webhook.go +++ b/pkg/services/notifications/webhook.go @@ -67,7 +67,7 @@ func sendWebRequest(webhook *Webhook) error { } 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()