Skip to content

Commit 48d3fe4

Browse files
committed
ruff suggestion
1 parent c274c95 commit 48d3fe4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/youtubeaio/youtube.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ async def is_short(self, video_id: str) -> bool:
307307
response = await self._api_head_request(self.session, _url)
308308
if response.status == 200:
309309
return True
310-
if response.status == 303 or response.status == 302 or response.status == 301:
310+
if response.status in {303, 302, 301}:
311311
return False
312312
raise YouTubeAPIError
313313

0 commit comments

Comments
 (0)