summary refs log tree commit diff
path: root/synapse/visibility.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-02-19 15:11:59 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2020-02-19 15:11:59 +0000
commitf590f77a163e182626b79cb4f6d551409b1f9b9b (patch)
tree65fc34b3e50745d8bb964dc4512f3ddb17c0c061 /synapse/visibility.py
parentOpentracing Utils (#5722) (diff)
parentReplace returnValue with return (#5736) (diff)
downloadsynapse-f590f77a163e182626b79cb4f6d551409b1f9b9b.tar.xz
Replace returnValue with return (#5736)
Diffstat (limited to 'synapse/visibility.py')
-rw-r--r--synapse/visibility.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/synapse/visibility.py b/synapse/visibility.py

index e50472081a..a19011b793 100644 --- a/synapse/visibility.py +++ b/synapse/visibility.py
@@ -238,7 +238,7 @@ def filter_events_for_client( filtered_events = filter(operator.truth, filtered_events) # we turn it into a list before returning it. - defer.returnValue(list(filtered_events)) + return list(filtered_events) @defer.inlineCallbacks @@ -347,11 +347,11 @@ def filter_events_for_server( elif redact: to_return.append(prune_event(e)) - defer.returnValue(to_return) + return to_return # If there are no erased users then we can just return the given list # of events without having to copy it. - defer.returnValue(events) + return events # Ok, so we're dealing with events that have non-trivial visibility # rules, so we need to also get the memberships of the room. @@ -414,4 +414,4 @@ def filter_events_for_server( elif redact: to_return.append(prune_event(e)) - defer.returnValue(to_return) + return to_return