mirror of
https://github.com/clearml/clearml
synced 2025-01-31 17:17:00 +00:00
Refactor (readability)
This commit is contained in:
parent
753b3ff68c
commit
820fa6ac7a
@ -41,9 +41,10 @@ class StorageManager(object):
|
|||||||
cached_file = CacheManager.get_cache_manager(
|
cached_file = CacheManager.get_cache_manager(
|
||||||
cache_context=cache_context
|
cache_context=cache_context
|
||||||
).get_local_copy(remote_url=remote_url, force_download=force_download)
|
).get_local_copy(remote_url=remote_url, force_download=force_download)
|
||||||
if not extract_archive or not cached_file:
|
if extract_archive and cached_file:
|
||||||
return cached_file
|
return cls._extract_to_cache(cached_file, name)
|
||||||
return cls._extract_to_cache(cached_file, name)
|
|
||||||
|
return cached_file
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def upload_file(
|
def upload_file(
|
||||||
|
Loading…
Reference in New Issue
Block a user