From 9f3f65771ae908662fbdddb46af455f4576505e7 Mon Sep 17 00:00:00 2001 From: Patrick Cloke Date: Tue, 17 Nov 2020 07:37:47 -0500 Subject: [PATCH] Rename a variable. --- synapse/handlers/sso.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/synapse/handlers/sso.py b/synapse/handlers/sso.py index c19be04f5b..9cb1866a71 100644 --- a/synapse/handlers/sso.py +++ b/synapse/handlers/sso.py @@ -77,14 +77,14 @@ class SsoHandler(BaseHandler): auth_provider_id, remote_user_id, ) - registered_user_id = await self.store.get_user_by_external_id( + previously_registered_user_id = await self.store.get_user_by_external_id( auth_provider_id, remote_user_id, ) # A match was found, return the user ID. - if registered_user_id is not None: - logger.info("Found existing mapping %s", registered_user_id) - return registered_user_id + if previously_registered_user_id is not None: + logger.info("Found existing mapping %s", previously_registered_user_id) + return previously_registered_user_id # No match. return None