Remove unnecessary if

pull/759/head
David Baker 2016-04-29 19:17:10 +01:00
parent 50ad8005e4
commit 60f44c098d
1 changed files with 1 additions and 1 deletions

View File

@ -200,7 +200,7 @@ class EventPushActionsStore(SQLBaseStore):
txn.execute(sql, (stream_ordering,))
return txn.fetchone()
result = yield self.runInteraction("get_time_of_last_push_action_before", f)
defer.returnValue(result[0] if result is not None else None)
defer.returnValue(result[0] if result else None)
@defer.inlineCallbacks
def get_latest_push_action_stream_ordering(self):