Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit b09d443

Browse files
Cleanup event auth type initialisation (#5975)
Very small code cleanup.
1 parent 6e834e9 commit b09d443

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

changelog.d/5975.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Cleanup event auth type initialisation.

synapse/event_auth.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -637,11 +637,11 @@ def auth_types_for_event(event):
637637
if event.type == EventTypes.Create:
638638
return []
639639

640-
auth_types = []
641-
642-
auth_types.append((EventTypes.PowerLevels, ""))
643-
auth_types.append((EventTypes.Member, event.sender))
644-
auth_types.append((EventTypes.Create, ""))
640+
auth_types = [
641+
(EventTypes.PowerLevels, ""),
642+
(EventTypes.Member, event.sender),
643+
(EventTypes.Create, ""),
644+
]
645645

646646
if event.type == EventTypes.Member:
647647
membership = event.content["membership"]

0 commit comments

Comments
 (0)