Skip to content

Commit

Permalink
fixup! use real if
Browse files Browse the repository at this point in the history
  • Loading branch information
robrap committed Apr 10, 2023
1 parent 0122bee commit 820de19
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion openedx/core/djangoapps/oauth_dispatch/jwt.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,10 @@ def _create_jwt(
"""
use_asymmetric_key = _get_use_asymmetric_key_value(is_restricted, use_asymmetric_key)
# Enable monitoring of key type used. Use increment in case there are multiple calls in a transaction.
increment('create_asymmetric_jwt_count') if use_asymmetric_key else increment('create_symmetric_jwt_count')
if use_asymmetric_key:
increment('create_asymmetric_jwt_count')
else:
increment('create_symmetric_jwt_count')

# Default scopes should only contain non-privileged data.
# Do not be misled by the fact that `email` and `profile` are default scopes. They
Expand Down

0 comments on commit 820de19

Please sign in to comment.