mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-01-27 18:27:02 -05:00
Remove unnecessary condition
This commit is contained in:
parent
c6c009603c
commit
1e4edd1717
@ -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):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user