From 0294c517ebb615540367b7047c711ed3e62e2a77 Mon Sep 17 00:00:00 2001 From: Sourcery AI <> Date: Mon, 4 Dec 2023 07:28:51 +0000 Subject: [PATCH] 'Refactored by Sourcery' --- core/auth.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/core/auth.py b/core/auth.py index ed90601..f37fe4f 100644 --- a/core/auth.py +++ b/core/auth.py @@ -72,10 +72,7 @@ def get_jwt_value(self, request): auth_header_prefix = self.prefix.lower() or "" if not auth: - if self.cookie: - return request.COOKIES.get(self.cookie) - return None - + return request.COOKIES.get(self.cookie) if self.cookie else None if auth_header_prefix is None or len(auth_header_prefix) < 1: auth.append("") auth.reverse()