summaryrefslogtreecommitdiff
path: root/jwt
diff options
context:
space:
mode:
Diffstat (limited to 'jwt')
-rw-r--r--jwt/algorithms.py1
-rw-r--r--jwt/jwk_set_cache.py1
2 files changed, 0 insertions, 2 deletions
diff --git a/jwt/algorithms.py b/jwt/algorithms.py
index 80d303c..277f940 100644
--- a/jwt/algorithms.py
+++ b/jwt/algorithms.py
@@ -475,7 +475,6 @@ if has_crypto:
@staticmethod
def to_jwk(key_obj):
-
if isinstance(key_obj, EllipticCurvePrivateKey):
public_numbers = key_obj.public_key().public_numbers()
elif isinstance(key_obj, EllipticCurvePublicKey):
diff --git a/jwt/jwk_set_cache.py b/jwt/jwk_set_cache.py
index 1b2465c..2432563 100644
--- a/jwt/jwk_set_cache.py
+++ b/jwt/jwk_set_cache.py
@@ -23,7 +23,6 @@ class JWKSetCache:
return self.jwk_set_with_timestamp.get_jwk_set()
def is_expired(self) -> bool:
-
return (
self.jwk_set_with_timestamp is not None
and self.lifespan > -1