From ea97517182148c9a923507b8e3284c0eb8114d42 Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Mon, 5 Oct 2026 18:16:28 +1100 Subject: [PATCH] fix(channels/email): ignore the IMAP close error explicitly --- channels/email/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channels/email/main.go b/channels/email/main.go index 1ee254c..bd91570 100644 --- a/channels/email/main.go +++ b/channels/email/main.go @@ -46,7 +46,7 @@ func run(ctx context.Context, cfg channel.Config, chat gatewayv1.ChatServiceClie if err != nil { return fmt.Errorf("email: dial %s: %w", s.imapAddr, err) } - defer client.Close() + defer func() { _ = client.Close() }() if err := client.Login(s.username, s.password).Wait(); err != nil { return fmt.Errorf("email: imap login: %w", err) }