summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2018-09-07 17:23:53 +0100
committerMatthew Hodgson <matthew@matrix.org>2018-09-07 17:23:53 +0100
commit3bccef4885e69cdd03a5d2fad4d9909ef7fd281d (patch)
tree3dade8d201e55a914b1443e4609614154f37f9f7
parentyet another typo (diff)
downloadsynapse-3bccef4885e69cdd03a5d2fad4d9909ef7fd281d.tar.xz
fix uninitialised var
-rw-r--r--synapse/storage/state.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/storage/state.py b/synapse/storage/state.py
index bca0630970..9886bd7f56 100644
--- a/synapse/storage/state.py
+++ b/synapse/storage/state.py
@@ -175,6 +175,7 @@ class StateGroupWorkerStore(EventsWorkerStore, SQLBaseStore):
             # Turns out that postgres doesn't like doing a list of OR's and
             # is about 1000x slower, so we just issue a query for each specific
             # type seperately.
+            additional_args = ()
             if types:
                 clause_to_args = [
                     (
@@ -195,6 +196,7 @@ class StateGroupWorkerStore(EventsWorkerStore, SQLBaseStore):
                 # If types is None we fetch all the state, and so just use an
                 # empty where clause with no extra args.
                 clause_to_args = [("", [])]
+
             for where_clause, where_args in clause_to_args:
                 args = [room_id]
                 args.extend(where_args)