diff options
author | David Robertson <davidr@element.io> | 2021-10-08 16:03:58 +0100 |
---|---|---|
committer | David Robertson <davidr@element.io> | 2021-10-08 17:18:00 +0100 |
commit | 79059f4e1e664ffa3dc459a09ce05d112fe03243 (patch) | |
tree | 9e648fc48cfb10b6eb93796cc5a24928d55c551a | |
parent | Group together the now_false cases (diff) | |
download | synapse-79059f4e1e664ffa3dc459a09ce05d112fe03243.tar.xz |
Remove redundant early returns.
-rw-r--r-- | synapse/handlers/user_directory.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/synapse/handlers/user_directory.py b/synapse/handlers/user_directory.py index d62d256f29..bb8c2fefc9 100644 --- a/synapse/handlers/user_directory.py +++ b/synapse/handlers/user_directory.py @@ -318,7 +318,6 @@ class UserDirectoryHandler(StateDeltasHandler): for user_id in user_ids: await self._handle_remove_user(room_id, user_id) - return else: logger.debug("Server is still in room: %r", room_id) await self._handle_remove_user(room_id, state_key) @@ -331,7 +330,6 @@ class UserDirectoryHandler(StateDeltasHandler): await self._handle_profile_change( state_key, room_id, prev_event_id, event_id ) - return elif change is MatchChange.now_true: # The user joined # This may be the first time we've seen a remote user. If # so, ensure we have a directory entry for them. (We don't |