aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Amrou Bellalouna <[email protected]>2022-09-18 18:01:44 +0100
committerGravatar Amrou Bellalouna <[email protected]>2022-09-18 18:01:44 +0100
commit4d33f8ee7fcac5ffbc6957da5ac103268fcb30e3 (patch)
tree7c2b52c53657ab7faf869f5ae6c5ba9ed55e93c9
parentrename pick to rule_number (diff)
remove unreachable code
-rw-r--r--bot/exts/info/information.py8
1 files changed, 0 insertions, 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)