aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2025-03-03 21:13:03 +0000
committerzsloan2025-03-28 20:38:47 +0000
commit69fd4dc0b95e99c81b9d800659cb690ea6731405 (patch)
treef1666dd3b36587054b6cdf4dffd1f80404898eff
parent8ff5d551633177d5ff07544348b2e04c4de5654e (diff)
downloadgn-auth-69fd4dc0b95e99c81b9d800659cb690ea6731405.tar.gz
Simplify line where it was unnecessarily checking request.json twice
-rw-r--r--gn_auth/auth/authorisation/data/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn_auth/auth/authorisation/data/views.py b/gn_auth/auth/authorisation/data/views.py
index 38eaad6..6d66788 100644
--- a/gn_auth/auth/authorisation/data/views.py
+++ b/gn_auth/auth/authorisation/data/views.py
@@ -189,7 +189,7 @@ def __search_mrna__():
def __request_key__(key: str, default: Any = ""):
if bool(request_json()):
return request_json().get(#type: ignore[union-attr]
- key, request.args.get(key, request_json().get(key, default)))
+ key, request.args.get(key, default))
return request.args.get(key, request_json().get(key, default))
def __request_key_list__(key: str, default: tuple[Any, ...] = tuple()):