Skip to content

Commit

Permalink
oidc-exchange: ignore a nested function
Browse files Browse the repository at this point in the history
Signed-off-by: William Woodruff <william@trailofbits.com>
  • Loading branch information
woodruffw committed Aug 9, 2023
1 parent 8bdd0cc commit e5f0690
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oidc-exchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def render_claims(token: str) -> str:
_, payload, _ = token.split(".", 2)
claims = json.loads(base64.urlsafe_b64decode(payload))

def _get(name: str) -> str:
def _get(name: str) -> str: # noqa: WPS430
return claims.get(name, "MISSING")

return _RENDERED_CLAIMS.format(
Expand Down

0 comments on commit e5f0690

Please sign in to comment.