summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2016-04-29 19:17:10 +0100
committerDavid Baker <dave@matrix.org>2016-04-29 19:17:10 +0100
commit60f44c098d14754d0159c2ccc2c888e7ca970427 (patch)
tree342f4d53e9e1ad7da801640ad0ee4679be284ccc
parentPut spaces at start of line (diff)
downloadsynapse-60f44c098d14754d0159c2ccc2c888e7ca970427.tar.xz
Remove unnecessary if
-rw-r--r--synapse/storage/event_push_actions.py2
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):