diff options
author | Yasser Tahiri <yasserth19@gmail.com> | 2021-10-03 06:32:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-03 11:32:59 +0600 |
commit | a988e1a11e5abb5869dd641f3f4f6a5bb4e70fdf (patch) | |
tree | 2e5908e8285ca95f61371e507663f5f8b3e1194b /jwt/api_jwt.py | |
parent | e7a6c022f3f2e5ba329cbadd242c788014926a7e (diff) | |
download | pyjwt-a988e1a11e5abb5869dd641f3f4f6a5bb4e70fdf.tar.gz |
Chore: inline Variables that immediately Returned (#690)
* Fix Inline variables & Refactor Code Expression
* Fix Linting Issue
Diffstat (limited to 'jwt/api_jwt.py')
-rw-r--r-- | jwt/api_jwt.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jwt/api_jwt.py b/jwt/api_jwt.py index c5fbbc5..2e9760f 100644 --- a/jwt/api_jwt.py +++ b/jwt/api_jwt.py @@ -204,7 +204,7 @@ class PyJWT: if isinstance(audience, str): audience = [audience] - if not any(aud in audience_claims for aud in audience): + if all(aud not in audience_claims for aud in audience): raise InvalidAudienceError("Invalid audience") def _validate_iss(self, payload, issuer): |