Refactored None comparisons
This commit is contained in:
parent
516098d246
commit
4b4af41d8a
2 changed files with 4 additions and 6 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue