summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2019-11-07 17:01:43 +0000
committerGitHub <noreply@github.com>2019-11-07 17:01:43 +0000
commit6d360f099f3ea09c90795e5a6c4fc07dbffd874e (patch)
treec4151d868c04cbc3bfdfbbcbbec1aa7068fc137b /synapse/storage
parentCopy results (diff)
downloadsynapse-6d360f099f3ea09c90795e5a6c4fc07dbffd874e.tar.xz
Update synapse/storage/data_stores/main/events_bg_updates.py
Co-Authored-By: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/data_stores/main/events_bg_updates.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/data_stores/main/events_bg_updates.py b/synapse/storage/data_stores/main/events_bg_updates.py
index a4cb64f479..18862adb9c 100644
--- a/synapse/storage/data_stores/main/events_bg_updates.py
+++ b/synapse/storage/data_stores/main/events_bg_updates.py
@@ -545,7 +545,7 @@ class EventsBackgroundUpdatesStore(BackgroundUpdateStore):
                         for label in event_json["content"].get(
                             EventContentFields.LABELS, []
                         )
-                        if label is not None and isinstance(label, str)
+                        if isinstance(label, str)
                     ],
                 )