Skip to content

Commit e74f5ae

Browse files
committed
Change to anext to match rest of library
1 parent 41cfff7 commit e74f5ae

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

twitchio/client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2534,8 +2534,7 @@ async def fetch_eventsub_subscription(
25342534
user_id=None,
25352535
status=None,
25362536
)
2537-
sub = await data.subscriptions
2538-
return sub[0] if sub else None
2537+
return await anext(data.subscriptions, None)
25392538

25402539
async def delete_eventsub_subscription(self, id: str, *, token_for: str | PartialUser | None = None) -> None:
25412540
"""|coro|

0 commit comments

Comments
 (0)