Remove extra for-loop

Co-authored-by: Erik Johnston <erikj@element.io>
This commit is contained in:
Eric Eastwood 2024-06-05 10:52:22 -05:00 committed by GitHub
parent 2864837b65
commit 2af467d4a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -450,10 +450,7 @@ class SlidingSyncHandler:
# Then assemble the `RoomStreamToken`
membership_snapshot_token = RoomStreamToken(
# Minimum position in the `instance_map`
stream=min(
stream_ordering
for stream_ordering in instance_to_max_stream_ordering_map.values()
),
stream=min(instance_to_max_stream_ordering_map.values()),
instance_map=immutabledict(instance_to_max_stream_ordering_map),
)