summary refs log tree commit diff
path: root/synapse/rest/client
diff options
context:
space:
mode:
authorAndrew Morgan <1342360+anoadragon453@users.noreply.github.com>2020-08-26 15:07:35 +0100
committerGitHub <noreply@github.com>2020-08-26 15:07:35 +0100
commite0d6244beb0165417a2817f8b36c828ad22f8dbd (patch)
treecf4934ef17846575a55d934145881c55c949dea5 /synapse/rest/client
parentAdd required Debian dependencies to allow docker builds on the arm platform (... (diff)
downloadsynapse-e0d6244beb0165417a2817f8b36c828ad22f8dbd.tar.xz
Remove unused parameter from, and add safeguard in, get_room_data (#8174)
Small cleanup PR.

* Removed the unused `is_guest` argument
* Added a safeguard to a (currently) impossible code path, fixing static checking at the same time.
Diffstat (limited to 'synapse/rest/client')
-rw-r--r--synapse/rest/client/v1/room.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/synapse/rest/client/v1/room.py b/synapse/rest/client/v1/room.py
index 11da8bc037..88245fc177 100644
--- a/synapse/rest/client/v1/room.py
+++ b/synapse/rest/client/v1/room.py
@@ -171,7 +171,6 @@ class RoomStateEventRestServlet(TransactionRestServlet):
             room_id=room_id,
             event_type=event_type,
             state_key=state_key,
-            is_guest=requester.is_guest,
         )
 
         if not data: