Skip to content

Commit e9fef1f

Browse files
'Refactored by Sourcery' (#66)
Co-authored-by: Sourcery AI <>
1 parent 8ab7d6a commit e9fef1f

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

core/auth.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,7 @@ def get_jwt_value(self, request):
7272
auth_header_prefix = self.prefix.lower() or ""
7373

7474
if not auth:
75-
if self.cookie:
76-
return request.COOKIES.get(self.cookie)
77-
return None
78-
75+
return request.COOKIES.get(self.cookie) if self.cookie else None
7976
if auth_header_prefix is None or len(auth_header_prefix) < 1:
8077
auth.append("")
8178
auth.reverse()

0 commit comments

Comments
 (0)