From 890103841676252d581dbad40fc1e4a2e579ac85 Mon Sep 17 00:00:00 2001 From: lyx0 Date: Fri, 22 Oct 2021 22:29:31 +0200 Subject: [PATCH] fix last return statement being unreachable --- cmd/bot/banphrase.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/bot/banphrase.go b/cmd/bot/banphrase.go index 8a41882..e39dad7 100644 --- a/cmd/bot/banphrase.go +++ b/cmd/bot/banphrase.go @@ -73,7 +73,7 @@ func CheckMessage(text string) (bool, string) { // Bad message if responseObject.Banned { return true, fmt.Sprintf("Banphrased, reason: %s", reason) - } else { + } else if !responseObject.Banned { // Good message return false, "okay" }