mirror of
https://github.com/clearml/clearml
synced 2025-06-26 18:16:07 +00:00
Refactor (readability)
This commit is contained in:
@@ -41,9 +41,10 @@ class StorageManager(object):
|
||||
cached_file = CacheManager.get_cache_manager(
|
||||
cache_context=cache_context
|
||||
).get_local_copy(remote_url=remote_url, force_download=force_download)
|
||||
if not extract_archive or not cached_file:
|
||||
return cached_file
|
||||
return cls._extract_to_cache(cached_file, name)
|
||||
if extract_archive and cached_file:
|
||||
return cls._extract_to_cache(cached_file, name)
|
||||
|
||||
return cached_file
|
||||
|
||||
@classmethod
|
||||
def upload_file(
|
||||
|
||||
Reference in New Issue
Block a user