0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-17 23:42:33 +01:00

Remove unnecessary condition

This commit is contained in:
Erik Johnston 2018-01-12 11:28:32 +00:00
parent c6c009603c
commit 1e4edd1717

View file

@ -263,10 +263,7 @@ class MediaRepository(object):
) )
responder = yield self.media_storage.fetch_media(file_info) responder = yield self.media_storage.fetch_media(file_info)
if responder: defer.returnValue((responder, media_info))
defer.returnValue((responder, media_info))
defer.returnValue((None, media_info))
@defer.inlineCallbacks @defer.inlineCallbacks
def _download_remote_file(self, server_name, media_id, file_id): def _download_remote_file(self, server_name, media_id, file_id):