Skip to content

Commit

Permalink
Fixed embed limit enforcement
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Kröger <l.kroeger01@gmail.com>
  • Loading branch information
LucaDev committed May 23, 2024
1 parent f2bd09e commit 20c9aea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notify/discord/discord.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func (n *Notifier) Notify(ctx context.Context, as ...*types.Alert) (bool, error)
var alerts = types.Alerts(as...)

Check failure on line 152 in notify/discord/discord.go

View workflow job for this annotation

GitHub Actions / lint

File is not `gofumpt`-ed with `-extra` (gofumpt)

for alertIndex, alert := range alerts {
if alertIndex > maxEmbedsPerMessage {
if alertIndex == maxEmbedsPerMessage {
w.Content = alertsOmittedMessage
break
}
Expand Down

0 comments on commit 20c9aea

Please sign in to comment.