aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/halloween/hacktoberstats.py
diff options
context:
space:
mode:
authorGravatar ToxicKidz <[email protected]>2021-05-05 14:46:29 -0400
committerGravatar ToxicKidz <[email protected]>2021-05-05 14:46:29 -0400
commit19e2efaf5572a0edb4595bead6877aaae078adae (patch)
tree9e4fce72e72c2fb1e1dc250bb88e786b7a107166 /bot/exts/halloween/hacktoberstats.py
parentchore: 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.py3
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: