1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-09-03 00:25:08 +00:00

[cleanup] Bump ruff to 0.5.x (#10282)

Authored by: seproDev
This commit is contained in:
sepro
2024-06-29 17:30:57 +02:00
committed by GitHub
parent 54a63e80af
commit 7814c50948
5 changed files with 16 additions and 20 deletions

View File

@ -455,10 +455,8 @@ class CBCGemIE(InfoExtractor):
def claims_token_expired(self):
exp = self._get_claims_token_expiry()
if exp - time.time() < 10:
# It will expire in less than 10 seconds, or has already expired
return True
return False
# It will expire in less than 10 seconds, or has already expired
return exp - time.time() < 10
def claims_token_valid(self):
return self._claims_token is not None and not self.claims_token_expired()