githelp: rewrite a Yoda conditional
authorMatt Harbison <matt_harbison@yahoo.com>
Mon, 21 May 2018 22:57:05 -0400
changeset 38121 10befe8e8b59
parent 38120 16463278e7f4
child 38122 26b73fad45d9
githelp: rewrite a Yoda conditional
hgext/githelp.py
--- a/hgext/githelp.py	Mon May 21 22:55:17 2018 -0400
+++ b/hgext/githelp.py	Mon May 21 22:57:05 2018 -0400
@@ -962,7 +962,7 @@
     if not args:
         raise error.Abort(_('missing svn command'))
     svncmd = args[0]
-    if not svncmd in gitsvncommands:
+    if svncmd not in gitsvncommands:
         raise error.Abort(_('unknown git svn command "%s"') % (svncmd))
 
     args = args[1:]