changeset 23793:201e15167d99

readmarkers: drop a conditional
author Matt Mackall <mpm@selenic.com>
date Sat, 10 Jan 2015 21:28:15 -0600
parents db3bc2bcb689
children e1583d70c4f2
files mercurial/obsolete.py
diffstat 1 files changed, 4 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/obsolete.py	Sat Jan 10 21:27:29 2015 -0600
+++ b/mercurial/obsolete.py	Sat Jan 10 21:28:15 2015 -0600
@@ -302,12 +302,10 @@
             _fm1node = _fm1nodesha256
             fnodesize = _fm1nodesha256size
 
-        # read replacement
-        sucs = ()
-        if numsuc:
-            s = (fnodesize * numsuc)
-            sucs = _unpack(_fm1node * numsuc, data[off:off + s])
-            off += s
+        # read 0 or more successors
+        s = (fnodesize * numsuc)
+        sucs = _unpack(_fm1node * numsuc, data[off:off + s])
+        off += s
 
         # read parents
         if numpar == _fm1parentnone: