[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

@ -214,7 +214,7 @@ class AutoShardedClient(Client):
except Exception:
log.info('Failed to connect for shard_id: %s. Retrying...', shard_id)
await asyncio.sleep(5.0, loop=self.loop)
return (await self.launch_shard(gateway, shard_id))
return await self.launch_shard(gateway, shard_id)
ws.token = self.http.token
ws._connection = self._connection
@ -231,7 +231,7 @@ class AutoShardedClient(Client):
except asyncio.TimeoutError:
log.info('Timed out when connecting for shard_id: %s. Retrying...', shard_id)
await asyncio.sleep(5.0, loop=self.loop)
return (await self.launch_shard(gateway, shard_id))
return await self.launch_shard(gateway, shard_id)
# keep reading the shard while others connect
self.shards[shard_id] = ret = Shard(ws, self)