mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-08 10:53:10 +00:00
[lint] Remove redundant paranthesis
Remove redundant parenthisis around await expressions. Left over from
f25091ef
.
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user