[lint] Remove redundant paranthesis

Remove redundant parenthisis around await expressions.  Left over from
f25091ef.
This commit is contained in:
Hornwitser authored and Rapptz committed 2018-11-24 22:17:58 -05:00
1 parent 633192b3cd
commit 51d626eabe
8 files changed
+15 -15

No files matched your search

+2 -2
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)