forked from MirrorHub/synapse
Remove unnecessary condition
This commit is contained in:
parent
c6c009603c
commit
1e4edd1717
1 changed files with 1 additions and 4 deletions
|
@ -263,11 +263,8 @@ 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.inlineCallbacks
|
||||
def _download_remote_file(self, server_name, media_id, file_id):
|
||||
"""Attempt to download the remote file from the given server name,
|
||||
|
|
Loading…
Reference in a new issue