summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-11-05 17:25:50 +0000
committerErik Johnston <erik@matrix.org>2015-11-05 17:25:50 +0000
commit2aa98ff3bcd0c5fcdacade3f0c83dc53b996fd4d (patch)
tree33e1388433b3fb0bfe7309466f5428cec8deda15
parentIncrement by one, not five (diff)
downloadsynapse-2aa98ff3bcd0c5fcdacade3f0c83dc53b996fd4d.tar.xz
Remove redundant test
-rw-r--r--synapse/handlers/search.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/synapse/handlers/search.py b/synapse/handlers/search.py
index 65255804f6..e1fb2db0c9 100644
--- a/synapse/handlers/search.py
+++ b/synapse/handlers/search.py
@@ -209,7 +209,6 @@ class SearchHandler(BaseHandler):
                     res = results_map[room_events[-1].event_id]
                     pagination_token = res["pagination_token"]
 
-                if room_events:
                     group = room_groups.setdefault(room_id, {})
                     if pagination_token:
                         next_batch = encode_base64("%s\n%s\n%s" % (