mirror of
https://github.com/apache/superset.git
synced 2026-06-04 15:19:25 +00:00
chore: Embrace the walrus operator (#24127)
This commit is contained in:
@@ -500,8 +500,7 @@ class QueryContextProcessor:
|
||||
return return_value
|
||||
|
||||
def get_cache_timeout(self) -> int:
|
||||
cache_timeout_rv = self._query_context.get_cache_timeout()
|
||||
if cache_timeout_rv:
|
||||
if cache_timeout_rv := self._query_context.get_cache_timeout():
|
||||
return cache_timeout_rv
|
||||
if (
|
||||
data_cache_timeout := config["DATA_CACHE_CONFIG"].get(
|
||||
|
||||
Reference in New Issue
Block a user