Fix linting

This commit is contained in:
Wim 2024-05-24 00:31:18 +02:00
parent 815d8b804f
commit a89267943c
No known key found for this signature in database

View File

@ -170,10 +170,10 @@ func (b *Bdiscord) handleEventWebhook(msg *config.Message, channelID string) (st
b.Log.Debugf("Processing webhook sending for message %#v", msg) b.Log.Debugf("Processing webhook sending for message %#v", msg)
msg.Text = b.replaceUserMentions(msg.Text) msg.Text = b.replaceUserMentions(msg.Text)
msgId, err := b.webhookSend(msg, channelID) msgID, err := b.webhookSend(msg, channelID)
if err != nil { if err != nil {
b.Log.Errorf("Could not broadcast via webhook for message %#v: %s", msgId, err) b.Log.Errorf("Could not broadcast via webhook for message %#v: %s", msgID, err)
return "", err return "", err
} }
return msgId, nil return msgID, nil
} }