Skip to content

Commit

Permalink
Fix lint warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
kim-pham-airbnb committed Mar 30, 2016
1 parent 4a77b70 commit e5553ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions caravel/viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,10 @@ def cache_timeout(self):
if self.slice and self.slice.cache_timeout:
return self.slice.cache_timeout
if self.datasource.cache_timeout:
return self.datasource.cache_timeout
return self.datasource.cache_timeout
if hasattr(self.datasource, 'database') \
and self.datasource.database.cache_timeout:
return self.datasource.database.cache_timeout
and self.datasource.database.cache_timeout:
return self.datasource.database.cache_timeout
return config.get("CACHE_DEFAULT_TIMEOUT")

def get_json(self):
Expand Down

0 comments on commit e5553ab

Please sign in to comment.