readmarkers: drop a conditional
authorMatt Mackall <mpm@selenic.com>
Sat, 10 Jan 2015 21:28:15 -0600
changeset 23793 201e15167d99
parent 23792 db3bc2bcb689
child 23794 e1583d70c4f2
readmarkers: drop a conditional
mercurial/obsolete.py
--- 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: