diff mercurial/debugcommands.py @ 40029:e2697acd9381

cleanup: some Yoda conditions, this patch removes It seems the factor 20 is less than the frequency of " < \d" compared to " \d > ". Differential Revision: https://phab.mercurial-scm.org/D4862
author Martin von Zweigbergk <martinvonz@google.com>
date Wed, 03 Oct 2018 10:27:44 -0700
parents 426cb2859013
children 64360202d5b2
line wrap: on
line diff
--- a/mercurial/debugcommands.py	Tue Oct 02 12:43:54 2018 -0700
+++ b/mercurial/debugcommands.py	Wed Oct 03 10:27:44 2018 -0700
@@ -2197,7 +2197,7 @@
     fullsize[2] /= numfull
     semitotal = semisize[2]
     snaptotal = {}
-    if 0 < numsemi:
+    if numsemi > 0:
         semisize[2] /= numsemi
     for depth in snapsizedepth:
         snaptotal[depth] = snapsizedepth[depth][2]