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") } }