From 6e69338abcebd8073ee1696e0412027b92be1b35 Mon Sep 17 00:00:00 2001 From: Devon Hudson Date: Fri, 3 Oct 2025 16:15:11 -0600 Subject: [PATCH] Fix linter error --- synapse/storage/databases/main/relations.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/synapse/storage/databases/main/relations.py b/synapse/storage/databases/main/relations.py index 48f6b0cbf1..52b1908e83 100644 --- a/synapse/storage/databases/main/relations.py +++ b/synapse/storage/databases/main/relations.py @@ -599,7 +599,11 @@ class RelationsWorkerStore(EventsWorkerStore, SQLBaseStore): # There might not be an edit event due to there being no edits or # due to the event not being known, either case is treated the same. return { - original_event_id: edits.get(edit_ids.get(original_event_id)) + original_event_id: ( + edits.get(edit_id) + if (edit_id := edit_ids.get(original_event_id)) + else None + ) for original_event_id in event_ids }