Fix go vet warnings
This commit is contained in:
parent
e6892e1063
commit
1d6b6d6ea8
|
@ -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")
|
||||
|
|
|
@ -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" {
|
||||
|
|
Loading…
Reference in New Issue