Skip to content

Commit

Permalink
Remove bool cast. 'old_path in self._paths' always returns a boolean …
Browse files Browse the repository at this point in the history
…value.
  • Loading branch information
Timo Stollenwerk committed Jun 20, 2012
1 parent d8ae884 commit dfebdab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plone/app/redirector/storage.py
Expand Up @@ -265,7 +265,7 @@ def destroy(self, new_path):


def has_path(self, old_path): def has_path(self, old_path):
old_path = self._canonical(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): def get(self, old_path, default=None):
old_path = self._canonical(old_path) old_path = self._canonical(old_path)
Expand Down

0 comments on commit dfebdab

Please sign in to comment.