From 4af39f03bd982bd31ef5c4afd07f15b0264a2c96 Mon Sep 17 00:00:00 2001 From: Elliot <3186037+elliot-100@users.noreply.github.com> Date: Sat, 14 Sep 2024 11:38:42 +0100 Subject: [PATCH] Refactor: remove unnecessary assignment to `output_data` before `return` statement --- spond/spond.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spond/spond.py b/spond/spond.py index 30da785..2df9a3f 100644 --- a/spond/spond.py +++ b/spond/spond.py @@ -389,8 +389,7 @@ async def get_event_attendance_xlsx(self, uid: str) -> bytes: """ url = f"{self.api_url}sponds/{uid}/export" async with self.clientsession.get(url, headers=self.auth_headers) as r: - output_data = await r.read() - return output_data + return await r.read() @_SpondBase.require_authentication async def change_response(self, uid: str, user: str, payload: JSONDict) -> JSONDict: