Skip to content

Commit

Permalink
Removes unnecessary check
Browse files Browse the repository at this point in the history
Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com>
  • Loading branch information
michael-s-molina and villebro authored Jan 10, 2022
1 parent 3e3c7bb commit 52b8b5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/dashboards/filter_state/commands/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ def get(self, resource_id: int, key: str, refresh_timeout: bool) -> Optional[str
entry: Entry = cache_manager.filter_state_cache.get(
cache_key(resource_id, key)
) or {}
if dashboard and entry and refresh_timeout:
if entry and refresh_timeout:
cache_manager.filter_state_cache.set(key, entry)
return entry.get("value")

0 comments on commit 52b8b5b

Please sign in to comment.