Permalink
Browse files

Remove bool cast. 'old_path in self._paths' always returns a boolean …

…value.
  • Loading branch information...
Timo Stollenwerk
Timo Stollenwerk committed Jun 20, 2012
1 parent d8ae884 commit dfebdabe10dac4426e4fb8b3ca47cca0e93110a8
Showing with 1 addition and 1 deletion.
  1. +1 −1 plone/app/redirector/storage.py
@@ -265,7 +265,7 @@ def destroy(self, new_path):
def has_path(self, old_path):
old_path = self._canonical(old_path)
return bool(old_path in self._paths)
return old_path in self._paths
def get(self, old_path, default=None):
old_path = self._canonical(old_path)

0 comments on commit dfebdab

Please sign in to comment.