debugextensions: unindent nested if
authorYuya Nishihara <yuya@tcha.org>
Sun, 10 Jul 2016 22:07:34 +0900
changeset 29716 d29fbf97cc9f
parent 29715 47e48931263e
child 29717 3ef9aa7ad1fc
debugextensions: unindent nested if
mercurial/commands.py
--- a/mercurial/commands.py	Sun Jul 10 22:06:13 2016 +0900
+++ b/mercurial/commands.py	Sun Jul 10 22:07:34 2016 +0900
@@ -2413,12 +2413,11 @@
             fm.write('name', '%s', extname)
             if not exttestedwith:
                 fm.plain(_(' (untested!)\n'))
+            elif exttestedwith == ['internal'] or hgver in exttestedwith:
+                fm.plain('\n')
             else:
-                if exttestedwith == ['internal'] or hgver in exttestedwith:
-                    fm.plain('\n')
-                else:
-                    lasttestedversion = exttestedwith[-1]
-                    fm.plain(' (%s!)\n' % lasttestedversion)
+                lasttestedversion = exttestedwith[-1]
+                fm.plain(' (%s!)\n' % lasttestedversion)
 
         fm.condwrite(ui.verbose and extsource, 'source',
                  _('  location: %s\n'), extsource or "")