From 95ceb3281a897e915c12a08587b8a79bf371adfc Mon Sep 17 00:00:00 2001 From: Jonathan de Jong Date: Fri, 9 Apr 2021 13:25:54 +0200 Subject: [PATCH] Apply suggestions from code review (manually) #2 Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> --- synapse/federation/sender/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synapse/federation/sender/__init__.py b/synapse/federation/sender/__init__.py index 9e2f2d393af9..7a13b41e9b17 100644 --- a/synapse/federation/sender/__init__.py +++ b/synapse/federation/sender/__init__.py @@ -360,7 +360,7 @@ async def get_federatable_events_and_destinations( ) -> List[Tuple[EventBase, Collection[str]]]: with Measure(self.clock, "get_destinations_for_events"): # Fetch federation destinations per event, - # skip if get_destinations_for_event returns None, + # skip if get_destinations_for_event returns an empty collection, # return list of event->destinations pairs. return [ (event, dests)