mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Remove unnecessary if
This commit is contained in:
parent
50ad8005e4
commit
60f44c098d
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user