From 8d188217e9f17a72eff4fc581a880f64b8439ad1 Mon Sep 17 00:00:00 2001 From: "Felipe M." Date: Sun, 27 Apr 2025 17:11:40 +0200 Subject: [PATCH] chore: lint fixes --- internal/plugin/domainblock/domainblock_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/plugin/domainblock/domainblock_test.go b/internal/plugin/domainblock/domainblock_test.go index 69cd8b8..1d65964 100644 --- a/internal/plugin/domainblock/domainblock_test.go +++ b/internal/plugin/domainblock/domainblock_test.go @@ -127,11 +127,11 @@ func TestOnMessage(t *testing.T) { responses := plugin.OnMessage(msg, config) if test.expectBlocked { - if responses == nil || len(responses) == 0 { + if len(responses) == 0 { t.Errorf("Expected message to be blocked, but it wasn't") } } else { - if responses != nil && len(responses) > 0 { + if len(responses) > 0 { t.Errorf("Expected message not to be blocked, but it was") } }