refactor(cnr): fix cache-miss return type consistency to empty list

This commit is contained in:
craftingmod 2026-06-30 06:38:06 +09:00
parent 9a0b2c40f1
commit ec2023a5a3

View File

@ -127,7 +127,7 @@ async def _get_cnr_data(sync_mode=None, dont_wait=True, **kwargs):
if dont_wait:
if cached_data is not None:
return cached_data.get('nodes', [])
return {}
return []
if cached_data is not None and manager_util.get_cache_state(uri, expired_days=1) == 'cached':
return cached_data.get('nodes', [])