summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-01-12 11:28:32 +0000
committerErik Johnston <erik@matrix.org>2018-01-12 11:28:32 +0000
commit1e4edd1717d1a3ef5ada210882d6798c520626eb (patch)
tree5a135a5e49d113d58a068b2d68e7d6b5e4a56bca /synapse
parentRemove unused variables (diff)
downloadsynapse-1e4edd1717d1a3ef5ada210882d6798c520626eb.tar.xz
Remove unnecessary condition
Diffstat (limited to 'synapse')
-rw-r--r--synapse/rest/media/v1/media_repository.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/synapse/rest/media/v1/media_repository.py b/synapse/rest/media/v1/media_repository.py
index 65b16ce4cb..5c50646bc7 100644
--- a/synapse/rest/media/v1/media_repository.py
+++ b/synapse/rest/media/v1/media_repository.py
@@ -263,10 +263,7 @@ class MediaRepository(object):
         )
 
         responder = yield self.media_storage.fetch_media(file_info)
-        if responder:
-            defer.returnValue((responder, media_info))
-
-        defer.returnValue((None, media_info))
+        defer.returnValue((responder, media_info))
 
     @defer.inlineCallbacks
     def _download_remote_file(self, server_name, media_id, file_id):