mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2026-07-12 17:37:06 +08:00
refactor(cnr): fix cache-miss return type consistency to empty list
This commit is contained in:
parent
9a0b2c40f1
commit
ec2023a5a3
@ -127,7 +127,7 @@ async def _get_cnr_data(sync_mode=None, dont_wait=True, **kwargs):
|
|||||||
if dont_wait:
|
if dont_wait:
|
||||||
if cached_data is not None:
|
if cached_data is not None:
|
||||||
return cached_data.get('nodes', [])
|
return cached_data.get('nodes', [])
|
||||||
return {}
|
return []
|
||||||
|
|
||||||
if cached_data is not None and manager_util.get_cache_state(uri, expired_days=1) == 'cached':
|
if cached_data is not None and manager_util.get_cache_state(uri, expired_days=1) == 'cached':
|
||||||
return cached_data.get('nodes', [])
|
return cached_data.get('nodes', [])
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user