From 5882039715a10d436f3b7b4b3f4d297f624837b7 Mon Sep 17 00:00:00 2001 From: joe Date: Tue, 13 Jan 2026 17:51:53 -0800 Subject: [PATCH] fix(mail_queue): remove invalid nil check for struct type QueueConfig is a struct, not a pointer, so comparing to nil is invalid. The `!ok` check is sufficient for map key existence. Fixes build error introduced in PR #437. Co-Authored-By: Claude Opus 4.5 --- internal/cmd/mail_queue.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cmd/mail_queue.go b/internal/cmd/mail_queue.go index 0ad4a141..887e689e 100644 --- a/internal/cmd/mail_queue.go +++ b/internal/cmd/mail_queue.go @@ -35,7 +35,7 @@ func runMailClaim(cmd *cobra.Command, args []string) error { } queueCfg, ok := cfg.Queues[queueName] - if !ok || queueCfg == nil { + if !ok { return fmt.Errorf("unknown queue: %s", queueName) }