Remove extra if-condition for kwtemplater setup in kwfilelog kwmap-templates
authorChristian Ebert <blacktrash@gmx.net>
Tue, 13 Feb 2007 18:03:12 +0100
branchkwmap-templates
changeset 141 edf9299112d1
parent 140 cade80b9d83d
child 142 aedce5bcc9eb
Remove extra if-condition for kwtemplater setup in kwfilelog This was over done in last cset, as repo is None by default kwarg, and None may be tested for attribs.
hgkw/keyword.py
--- a/hgkw/keyword.py	Mon Feb 12 00:40:49 2007 +0100
+++ b/hgkw/keyword.py	Tue Feb 13 18:03:12 2007 +0100
@@ -220,7 +220,7 @@
             self._repo = repo
             self._path = path
             # only init kwtemplater if needed
-            if repo and hasattr(repo, 'kwfmatcher') and repo.kwfmatcher(path):
+            if hasattr(repo, 'kwfmatcher') and repo.kwfmatcher(path):
                 self.kwt = kwtemplater(repo.ui, repo)
             else:
                 self.kwt = None