From 58fde0def491099d3833e3d58ec7c441d84d1ef2 Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Tue, 12 Mar 2024 00:40:10 +0300 Subject: Rename "the_client" to "_client". Signed-off-by: Munyoki Kilyungi --- gn_auth/auth/authentication/oauth2/server.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gn_auth/auth') diff --git a/gn_auth/auth/authentication/oauth2/server.py b/gn_auth/auth/authentication/oauth2/server.py index 12366a6..efadc51 100644 --- a/gn_auth/auth/authentication/oauth2/server.py +++ b/gn_auth/auth/authentication/oauth2/server.py @@ -25,10 +25,10 @@ def create_query_client_func() -> Callable: # use current_app rather than passing the db_uri to avoid issues # when config changes, e.g. while testing. with db.connection(current_app.config["AUTH_DB"]) as conn: - the_client = client(conn, client_id).maybe( + _client = client(conn, client_id).maybe( None, lambda clt: clt) # type: ignore[misc] - if bool(the_client): - return the_client + if bool(_client): + return _client raise InvalidClientError( "No client found for the given CLIENT_ID and CLIENT_SECRET.") -- cgit v1.2.3