mercurial/wireproto.py
changeset 33765 e2fc2122029c
parent 33764 297d1b70685c
child 33766 4c706037adef
--- a/mercurial/wireproto.py	Wed Aug 09 21:51:45 2017 -0700
+++ b/mercurial/wireproto.py	Wed Aug 09 22:52:05 2017 -0700
@@ -95,11 +95,9 @@
             if batchablefn is not None:
                 batchable = batchablefn(mtd.im_self, *args, **opts)
                 encargsorres, encresref = next(batchable)
-                if encresref:
-                    req.append((name, encargsorres,))
-                    rsp.append((batchable, encresref, resref,))
-                else:
-                    resref.set(encargsorres)
+                assert encresref
+                req.append((name, encargsorres,))
+                rsp.append((batchable, encresref, resref,))
             else:
                 if req:
                     self._submitreq(req, rsp)