Remove pointless map

This commit is contained in:
Erik Johnston 2015-08-13 17:20:59 +01:00
parent 3d77e56c12
commit 9f7f228ec2

View File

@ -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=[]):