Skip to content

Commit

Permalink
fix: make slice nil explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
iamKunalGupta committed Mar 12, 2024
1 parent 950848a commit 970fc5f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flow/alerting/alerting.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ func (a *Alerter) registerSendersFromPool(ctx context.Context) ([]AlertSenderCon
if envReplyToAddresses := strings.Split(peerdbenv.PeerDBAlertingEmailSenderReplyToAddresses(), ","); len(envReplyToAddresses) != 0 {
// AWS SDK does not like empty slice
replyToAddresses = envReplyToAddresses
} else {
replyToAddresses = nil
}
emailServiceConfig := EmailAlertSenderConfig{
sourceEmail: peerdbenv.PeerDBAlertingEmailSenderSourceEmail(),
Expand Down

0 comments on commit 970fc5f

Please sign in to comment.