summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorNeil Johnson <neil@fragile.org.uk>2018-01-25 23:52:17 +0000
committerNeil Johnson <neil@fragile.org.uk>2018-01-25 23:52:17 +0000
commitf6320835764dbb6cac058763737d67ca6359e3a9 (patch)
tree26355630a541bc1dfb598a6972c03dcffdeb5fc4 /synapse
parentfix PEP8 violation (diff)
downloadsynapse-f6320835764dbb6cac058763737d67ca6359e3a9.tar.xz
fix return type, should be a dict
Diffstat (limited to 'synapse')
-rw-r--r--synapse/handlers/room_list.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/room_list.py b/synapse/handlers/room_list.py
index f466a64ed9..2ee63548ca 100644
--- a/synapse/handlers/room_list.py
+++ b/synapse/handlers/room_list.py
@@ -188,7 +188,7 @@ class RoomListHandler(BaseHandler):
 
         # bail if no rooms to work on
         if len(rooms_to_scan) == 0:
-            defer.returnValue([])
+            defer.returnValue({})
 
         # _append_room_entry_to_chunk will append to chunk but will stop if
         # len(chunk) > limit