mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
chore: Embrace the walrus operator (#24127)
This commit is contained in:
@@ -148,8 +148,7 @@ class QueryCacheManager:
|
||||
if not key or not _cache[region] or force_query:
|
||||
return query_cache
|
||||
|
||||
cache_value = _cache[region].get(key)
|
||||
if cache_value:
|
||||
if cache_value := _cache[region].get(key):
|
||||
logger.debug("Cache key: %s", key)
|
||||
stats_logger.incr("loading_from_cache")
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user