Skip to content

Commit

Permalink
More readable conditional statements (#441)
Browse files Browse the repository at this point in the history
  • Loading branch information
SayatP committed Aug 19, 2021
1 parent ff59830 commit e74f4eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rest_framework_simplejwt/authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,4 +144,4 @@ def default_user_authentication_rule(user):
# `AllowAllUsersModelBackend`. However, we explicitly prevent inactive
# users from authenticating to enforce a reasonable policy and provide
# sensible backwards compatibility with older Django versions.
return True if user is not None and user.is_active else False
return user is not None and user.is_active

0 comments on commit e74f4eb

Please sign in to comment.