Skip to content

Commit e74f4eb

Browse files
authored
More readable conditional statements (#441)
1 parent ff59830 commit e74f4eb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rest_framework_simplejwt/authentication.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,4 +144,4 @@ def default_user_authentication_rule(user):
144144
# `AllowAllUsersModelBackend`. However, we explicitly prevent inactive
145145
# users from authenticating to enforce a reasonable policy and provide
146146
# sensible backwards compatibility with older Django versions.
147-
return True if user is not None and user.is_active else False
147+
return user is not None and user.is_active

0 commit comments

Comments
 (0)