mirror of https://github.com/nucypher/nucypher.git
validate_public_key has void return type so no need to return values
Co-authored-by: Derek Pierre <derek.pierre@gmail.com>pull/3570/head
parent
2403ed75cc
commit
2b048ea3ee
|
@ -52,7 +52,7 @@ class JWTVerificationCall(ExecutionCall):
|
|||
value.encode(), backend=default_backend()
|
||||
)
|
||||
if isinstance(public_key, rsa.RSAPublicKey):
|
||||
return value
|
||||
return
|
||||
elif isinstance(public_key, ec.EllipticCurvePublicKey):
|
||||
curve = public_key.curve
|
||||
if curve.name != JWTVerificationCall.SECP_CURVE_FOR_ES256:
|
||||
|
@ -62,8 +62,6 @@ class JWTVerificationCall(ExecutionCall):
|
|||
except Exception as e:
|
||||
raise ValidationError(f"Invalid public key format: {str(e)}")
|
||||
|
||||
return value
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
jwt_token: str,
|
||||
|
|
Loading…
Reference in New Issue