Skip to content

Commit

Permalink
chore: fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
iamKunalGupta committed Mar 12, 2024
1 parent ff46929 commit 858fde1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flow/alerting/alerting.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ func (a *Alerter) registerSendersFromPool(ctx context.Context) ([]AlertSenderCon
alertSenderConfigs = append(alertSenderConfigs, AlertSenderConfig{Id: id, Sender: newSlackAlertSender(&slackServiceConfig)})
case EMAIL:
var replyToAddresses []string
if envString := strings.TrimSpace(peerdbenv.PeerDBAlertingEmailSenderReplyToAddresses()); len(envString) != 0 {
if envString := strings.TrimSpace(
peerdbenv.PeerDBAlertingEmailSenderReplyToAddresses()); len(envString) != 0 {

Check failure on line 57 in flow/alerting/alerting.go

View workflow job for this annotation

GitHub Actions / lint

emptyStringTest: replace `len(envString) != 0` with `envString != ""` (gocritic)
replyToAddresses = strings.Split(envString, ",")
}
emailServiceConfig := EmailAlertSenderConfig{
Expand Down

0 comments on commit 858fde1

Please sign in to comment.