changeset 32378:92de09a05d7f

registrar: unindent superfluous "if True" block
author Yuya Nishihara <yuya@tcha.org>
date Mon, 08 May 2017 22:14:56 +0900
parents ec84db232fc2
children 9c023179e8d0
files mercurial/registrar.py
diffstat 1 files changed, 8 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/registrar.py	Mon May 08 22:08:40 2017 +0900
+++ b/mercurial/registrar.py	Mon May 08 22:14:56 2017 +0900
@@ -128,15 +128,14 @@
 
     def _doregister(self, func, name, options=(), synopsis=None,
                     norepo=False, optionalrepo=False, inferrepo=False):
-        if True:
-            func.norepo = norepo
-            func.optionalrepo = optionalrepo
-            func.inferrepo = inferrepo
-            if synopsis:
-                self._table[name] = func, list(options), synopsis
-            else:
-                self._table[name] = func, list(options)
-            return func
+        func.norepo = norepo
+        func.optionalrepo = optionalrepo
+        func.inferrepo = inferrepo
+        if synopsis:
+            self._table[name] = func, list(options), synopsis
+        else:
+            self._table[name] = func, list(options)
+        return func
 
 class revsetpredicate(_funcregistrarbase):
     """Decorator to register revset predicate