Appease the linter

Signed-off-by: gotjosh <josue.abreu@gmail.com>
This commit is contained in:
gotjosh 2022-07-25 10:33:15 +01:00
parent 3b9c467e1c
commit 5101057350
No known key found for this signature in database
GPG Key ID: A6E1DDE38FF3C74E
2 changed files with 3 additions and 4 deletions

View File

@ -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)
}

View File

@ -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),
},