[Pkg-javascript-commits] [node-stream-splicer] 48/71: fix the nested middle test by moving repos outside the arg loop

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 15 09:55:51 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-stream-splicer.

commit 09dcd49c12454b996cc55e99f1c70a77aba8beeb
Author: James Halliday <mail at substack.net>
Date:   Thu Jun 12 18:13:07 2014 -0700

    fix the nested middle test by moving repos outside the arg loop
---
 index.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/index.js b/index.js
index b2c14a4..e59b545 100644
--- a/index.js
+++ b/index.js
@@ -137,10 +137,13 @@ Pipeline.prototype.splice = function (start, removeLen) {
                 Duplex.prototype.push.call(self, null);
             }
         });
-        if (j < args.length - 1) stream.pipe(args[j+1]);
         reps.push(stream);
     })(arguments[j]);
     
+    for (var i = 0; i < reps.length - 1; i++) {
+        reps[i].pipe(reps[i+1]);
+    }
+    
     if (reps.length && self._streams[end]) {
         reps[reps.length-1].pipe(self._streams[end]);
     }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-stream-splicer.git



More information about the Pkg-javascript-commits mailing list