diff options
author | David Baker <dave@matrix.org> | 2016-04-29 19:17:10 +0100 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2016-04-29 19:17:10 +0100 |
commit | 60f44c098d14754d0159c2ccc2c888e7ca970427 (patch) | |
tree | 342f4d53e9e1ad7da801640ad0ee4679be284ccc /synapse/storage/event_push_actions.py | |
parent | Put spaces at start of line (diff) | |
download | synapse-60f44c098d14754d0159c2ccc2c888e7ca970427.tar.xz |
Remove unnecessary if
Diffstat (limited to 'synapse/storage/event_push_actions.py')
-rw-r--r-- | synapse/storage/event_push_actions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/event_push_actions.py b/synapse/storage/event_push_actions.py index 5b9a4ca60d..c6625a7b08 100644 --- a/synapse/storage/event_push_actions.py +++ b/synapse/storage/event_push_actions.py @@ -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): |