summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2019-09-03 19:58:51 +0100
committerAndrew Morgan <andrew@amorgan.xyz>2019-09-03 19:58:51 +0100
commita98b8583c647d841b49b94a3de030b9e8d5271c0 (patch)
treebb20c3cd2ee5817e2527de855b65c7c2e17d98fa
parentDocker packaging should not su-exec or chmod if already running as UID/GID (#... (diff)
downloadsynapse-a98b8583c647d841b49b94a3de030b9e8d5271c0.tar.xz
Remove unnecessary variable declaration
-rw-r--r--synapse/handlers/register.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/synapse/handlers/register.py b/synapse/handlers/register.py
index 3142d85788..1711d5ac5c 100644
--- a/synapse/handlers/register.py
+++ b/synapse/handlers/register.py
@@ -397,7 +397,6 @@ class RegistrationHandler(BaseHandler):
 
     @defer.inlineCallbacks
     def _join_user_to_room(self, requester, room_identifier):
-        room_id = None
         room_member_handler = self.hs.get_room_member_handler()
         if RoomID.is_valid(room_identifier):
             room_id = room_identifier