diff options
author | 2021-08-02 20:33:51 +0200 | |
---|---|---|
committer | 2021-08-02 20:33:51 +0200 | |
commit | ab14da21715c549b7cb5508fc6339b6ee9a31490 (patch) | |
tree | 04037d22f633d5b51f29f7e40c59ead34e6d021b | |
parent | Move `current_group` assignment and use it instead of `identifier.group` (diff) |
Use an and instead of nested ifs
-rw-r--r-- | bot/exts/info/tags.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/bot/exts/info/tags.py b/bot/exts/info/tags.py index 50e63b479..7efaae3c3 100644 --- a/bot/exts/info/tags.py +++ b/bot/exts/info/tags.py @@ -276,10 +276,9 @@ class Tags(Cog): ] tag = self._tags.get(tag_identifier) - if tag is None: - if len(filtered_tags) == 1: - tag_identifier = filtered_tags[0][0] - tag = filtered_tags[0][1] + if tag is None and len(filtered_tags) == 1: + tag_identifier = filtered_tags[0][0] + tag = filtered_tags[0][1] if tag is not None: if tag.on_cooldown_in(ctx.channel): |