aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/halloween/hacktoberstats.py
diff options
context:
space:
mode:
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: