From 1d6b6d6ea84e2cbdcaa0185fec9b21f8359cca17 Mon Sep 17 00:00:00 2001 From: beorn7 Date: Fri, 17 Jun 2016 15:10:16 +0200 Subject: [PATCH] Fix go vet warnings --- inhibit_test.go | 2 +- notify/impl.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/inhibit_test.go b/inhibit_test.go index f212471d..f2acebfc 100644 --- a/inhibit_test.go +++ b/inhibit_test.go @@ -124,7 +124,7 @@ func TestInhibitRuleHasEqual(t *testing.T) { } if have := r.hasEqual(c.input); have != c.result { - t.Errorf("Unexpected result %q, expected %q", have, c.result) + t.Errorf("Unexpected result %t, expected %t", have, c.result) } if !reflect.DeepEqual(r.scache, c.initial) { t.Errorf("Cache state unexpectedly changed") diff --git a/notify/impl.go b/notify/impl.go index a4eadfe4..59a1f04e 100644 --- a/notify/impl.go +++ b/notify/impl.go @@ -563,7 +563,7 @@ func (n *Hipchat) Notify(ctx context.Context, as ...*types.Alert) error { data = n.tmpl.Data(receiver(ctx), groupLabels(ctx), as...) tmplText = tmplText(n.tmpl, data, &err) tmplHTML = tmplHTML(n.tmpl, data, &err) - url = fmt.Sprintf("%sv2/room/%s/notification?auth_token=%s", n.conf.APIURL, n.conf.RoomID, n.conf.AuthToken) + url = fmt.Sprintf("%sv2/room/%d/notification?auth_token=%s", n.conf.APIURL, n.conf.RoomID, n.conf.AuthToken) ) if n.conf.MessageFormat == "html" {