Refactored None comparisons

This commit is contained in:
Robert 2020-08-12 18:16:50 +02:00
parent 516098d246
commit 4b4af41d8a
2 changed files with 4 additions and 6 deletions

View file

@ -91,7 +91,7 @@ class Search(commands.Cog):
@commands.command(name="search", description="Searches Jisho", usage="<query>", aliases=["s"])
@commands.cooldown(1, 5)
async def search(self, ctx: commands.Context, *, query: str = None):
if query == None:
if query is None:
return
self.activeObject = JishoObject(query, ctx.author.id)