diff options
author | Erik Johnston <erik@matrix.org> | 2018-01-12 11:28:32 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2018-01-12 11:28:32 +0000 |
commit | 1e4edd1717d1a3ef5ada210882d6798c520626eb (patch) | |
tree | 5a135a5e49d113d58a068b2d68e7d6b5e4a56bca | |
parent | Remove unused variables (diff) | |
download | synapse-1e4edd1717d1a3ef5ada210882d6798c520626eb.tar.xz |
Remove unnecessary condition
-rw-r--r-- | synapse/rest/media/v1/media_repository.py | 5 |
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): |