[Pkg-javascript-commits] [node-stream-splicer] 20/71: simpler splice-based ops
Bastien Roucariès
rouca at moszumanska.debian.org
Fri Dec 15 09:55:48 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 7249b055aa9a9bfa8b9a8ad819782c478d6e4299
Author: James Halliday <mail at substack.net>
Date: Sun Jun 8 14:34:04 2014 -0700
simpler splice-based ops
---
index.js | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/index.js b/index.js
index 013397e..a97ccfc 100644
--- a/index.js
+++ b/index.js
@@ -84,10 +84,7 @@ Pipeline.prototype.pop = function () {
};
Pipeline.prototype.shift = function () {
- var s = this._streams.shift();
- if (this._streams.length > 0) s.unpipe(this._streams[0]);
- this.emit('_mutate');
- return s;
+ return this.splice(0,1)[0];
};
Pipeline.prototype.unshift = function () {
--
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