Skip to content

Commit

Permalink
Appease the linter
Browse files Browse the repository at this point in the history
Signed-off-by: gotjosh <josue.abreu@gmail.com>
  • Loading branch information
gotjosh committed Jul 25, 2022
1 parent 3b9c467 commit 5101057
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions cmd/alertmanager/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down
4 changes: 2 additions & 2 deletions cmd/alertmanager/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand All @@ -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),
},
Expand Down

0 comments on commit 5101057

Please sign in to comment.