From 4d33f8ee7fcac5ffbc6957da5ac103268fcb30e3 Mon Sep 17 00:00:00 2001 From: Amrou Bellalouna Date: Sun, 18 Sep 2022 18:01:44 +0100 Subject: remove unreachable code --- bot/exts/info/information.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/bot/exts/info/information.py b/bot/exts/info/information.py index c9ea025ed..a0674f758 100644 --- a/bot/exts/info/information.py +++ b/bot/exts/info/information.py @@ -575,14 +575,6 @@ class Information(Cog): final_rule_numbers.append(rule_number + 1) break - if not rule_numbers and not final_rule_numbers: - # This would mean that only keywords where used and no match for them was found - await ctx.send( - f"There are currently no rules that correspond to keywords: **{', '.join(keywords)}**.\n" - f"If you think it should be added, please suggest it in either " - f"<#{constants.Channels.meta}> or <#{constants.Channels.dev_contrib}>") - return - final_rules = [] final_rule_numbers.sort() final_rule_numbers = set(final_rule_numbers) -- cgit v1.2.3