Appease the linter
Signed-off-by: gotjosh <josue.abreu@gmail.com>
This commit is contained in:
parent
3b9c467e1c
commit
5101057350
|
@ -438,9 +438,8 @@ func run() int {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
receivers = append(receivers, notify.NewReceiver(rcv.Name, true, integrations))
|
||||
// rcv.Name is guaranteed to be unique across all receivers.
|
||||
//receivers[rcv.Name] = integrations
|
||||
receivers = append(receivers, notify.NewReceiver(rcv.Name, true, integrations))
|
||||
integrationsNum += len(integrations)
|
||||
}
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ func TestBuildReceiverIntegrations(t *testing.T) {
|
|||
for _, tc := range []struct {
|
||||
receiver *config.Receiver
|
||||
err bool
|
||||
exp []notify.Integration
|
||||
exp []*notify.Integration
|
||||
}{
|
||||
{
|
||||
receiver: &config.Receiver{
|
||||
|
@ -50,7 +50,7 @@ func TestBuildReceiverIntegrations(t *testing.T) {
|
|||
},
|
||||
},
|
||||
},
|
||||
exp: []notify.Integration{
|
||||
exp: []*notify.Integration{
|
||||
notify.NewIntegration(nil, sendResolved(false), "webhook", 0),
|
||||
notify.NewIntegration(nil, sendResolved(true), "webhook", 1),
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue