mirror of
https://github.com/element-hq/synapse.git
synced 2026-10-22 21:54:03 +00:00
Remove unnecessary if
This commit is contained in:
1 parent
50ad8005e4
commit
60f44c098d
1 file changed
+1
-1
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user