Skip to content

Commit

Permalink
return bool value directly
Browse files Browse the repository at this point in the history
  • Loading branch information
untitaker committed May 31, 2015
1 parent d2380c3 commit 148b646
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions werkzeug/contrib/cache.py
Expand Up @@ -327,8 +327,7 @@ def delete(self, key):
def has(self, key):
try:
expires, value = self._cache[key]
if expires == 0 or expires > time():
return True
return expires == 0 or expires > time()
except KeyError:
return False

Expand Down

0 comments on commit 148b646

Please sign in to comment.