lint fixes

This commit is contained in:
Aine
2023-10-03 00:03:29 +03:00
parent ef221038f7
commit 0d0dcf20b9
18 changed files with 196 additions and 152 deletions

View File

@@ -38,8 +38,7 @@ func (b *Bot) handleReaction(ctx context.Context) {
ctx = threadIDToContext(ctx, threadID)
linkpearl.ParseContent(evt, b.log)
switch action {
case commandSpamlistAdd:
if action == commandSpamlistAdd {
sender := linkpearl.EventField[string](&srcEvt.Content, eventFromKey)
if sender == "" {
b.Error(ctx, "cannot get sender of the email")