[lint] Remove redundant paranthesis

Remove redundant parenthisis around await expressions.  Left over from
f25091ef.
This commit is contained in:
Hornwitser
2018-08-09 14:15:44 +02:00
committed by Rapptz
parent 633192b3cd
commit 51d626eabe
8 changed files with 15 additions and 15 deletions

View File

@@ -340,7 +340,7 @@ class BotBase(GroupMixin):
if len(data) == 0:
return True
return (await discord.utils.async_all(f(ctx) for f in data))
return await discord.utils.async_all(f(ctx) for f in data)
async def is_owner(self, user):
"""Checks if a :class:`.User` or :class:`.Member` is the owner of
@@ -895,7 +895,7 @@ class BotBase(GroupMixin):
if ctx.command is not None:
self.dispatch('command', ctx)
try:
if (await self.can_run(ctx, call_once=True)):
if await self.can_run(ctx, call_once=True):
await ctx.command.invoke(ctx)
except CommandError as exc:
await ctx.command.dispatch_error(ctx, exc)