diff options
author | 2021-05-05 14:46:29 -0400 | |
---|---|---|
committer | 2021-05-05 14:46:29 -0400 | |
commit | 19e2efaf5572a0edb4595bead6877aaae078adae (patch) | |
tree | 9e4fce72e72c2fb1e1dc250bb88e786b7a107166 /bot/exts/halloween/hacktoberstats.py | |
parent | chore: Improve .space epic's docstring (diff) |
chore: Apply suggested changes
Diffstat (limited to 'bot/exts/halloween/hacktoberstats.py')
-rw-r--r-- | bot/exts/halloween/hacktoberstats.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bot/exts/halloween/hacktoberstats.py b/bot/exts/halloween/hacktoberstats.py index 33e9ca31..b74e680b 100644 --- a/bot/exts/halloween/hacktoberstats.py +++ b/bot/exts/halloween/hacktoberstats.py @@ -302,8 +302,7 @@ class HacktoberStats(commands.Cog): async def _fetch_url(self, url: str, headers: dict) -> dict: """Retrieve API response from URL.""" async with self.bot.http_session.get(url, headers=headers) as resp: - jsonresp = await resp.json() - return jsonresp + return await resp.json() @staticmethod def _has_label(pr: dict, labels: Union[List[str], str]) -> bool: |