aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Numerlor <[email protected]>2020-12-12 03:59:40 +0100
committerGravatar Numerlor <[email protected]>2020-12-15 05:02:52 +0100
commit9f11b453930b5abbab0b891e8b1ca0a2f9d013d0 (patch)
tree448de9257a78293a859b147bb88ef3cc225ba45a
parentLock inventory refreshes (diff)
Simplify flow
The else is a bit clearer than the early return
-rw-r--r--bot/exts/info/doc/_cog.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/info/doc/_cog.py b/bot/exts/info/doc/_cog.py
index 11d17222d..5e7399afb 100644
--- a/bot/exts/info/doc/_cog.py
+++ b/bot/exts/info/doc/_cog.py
@@ -417,8 +417,8 @@ class DocCog(commands.Cog):
f"Added the package `{package_name}` to the database but failed to fetch inventory; "
f"trying again in 2 minutes."
)
- return
- await ctx.send(f"Added package `{package_name}` to database and refreshed inventory.")
+ else:
+ await ctx.send(f"Added package `{package_name}` to database and refreshed inventory.")
@docs_group.command(name='deletedoc', aliases=('removedoc', 'rm', 'd'))
@commands.has_any_role(*MODERATION_ROLES)