diff options
author | Erik Johnston <erik@matrix.org> | 2015-08-13 17:20:59 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-08-13 17:20:59 +0100 |
commit | 9f7f228ec2e2948c69ca3910d27fffdd2c2fea50 (patch) | |
tree | 2d99393df77ab5fea45468fe6c97fe5bafacd512 /synapse/handlers | |
parent | Merge branch 'develop' of github.com:matrix-org/synapse into erikj/dictionary... (diff) | |
download | synapse-9f7f228ec2e2948c69ca3910d27fffdd2c2fea50.tar.xz |
Remove pointless map
Diffstat (limited to '')
-rw-r--r-- | synapse/handlers/federation.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/synapse/handlers/federation.py b/synapse/handlers/federation.py index 2bfd0a40e0..1e3dccf5a8 100644 --- a/synapse/handlers/federation.py +++ b/synapse/handlers/federation.py @@ -237,9 +237,7 @@ class FederationHandler(BaseHandler): ) ) - def redact_disallowed(event_and_state): - event, state = event_and_state - + def redact_disallowed(event, state): if not state: return event @@ -273,13 +271,11 @@ class FederationHandler(BaseHandler): return event - res = map(redact_disallowed, [ - (e, event_to_state[e.event_id]) + defer.returnValue([ + redact_disallowed(e, event_to_state[e.event_id]) for e in events ]) - defer.returnValue(res) - @log_function @defer.inlineCallbacks def backfill(self, dest, room_id, limit, extremities=[]): |