mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
fix last return statement being unreachable
This commit is contained in:
parent
6edccd2b24
commit
8901038416
|
@ -73,7 +73,7 @@ func CheckMessage(text string) (bool, string) {
|
||||||
// Bad message
|
// Bad message
|
||||||
if responseObject.Banned {
|
if responseObject.Banned {
|
||||||
return true, fmt.Sprintf("Banphrased, reason: %s", reason)
|
return true, fmt.Sprintf("Banphrased, reason: %s", reason)
|
||||||
} else {
|
} else if !responseObject.Banned {
|
||||||
// Good message
|
// Good message
|
||||||
return false, "okay"
|
return false, "okay"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue