Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorFeross Aboukhadijeh <feross@feross.org>2016-04-21 12:14:51 +0300
committerFeross Aboukhadijeh <feross@feross.org>2016-04-21 12:14:51 +0300
commit1d51b5b428b791f4766c1d3cb49b5bc457a00656 (patch)
tree96f4982af1b51d297077253fcea5fb81f4db4f9c /lib
parent0a22dc73c15eb9e74a3c0c13f570a76516e41799 (diff)
use simple-concat
Diffstat (limited to 'lib')
-rw-r--r--lib/concat-stream.js14
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/concat-stream.js b/lib/concat-stream.js
deleted file mode 100644
index c2d8860..0000000
--- a/lib/concat-stream.js
+++ /dev/null
@@ -1,14 +0,0 @@
-module.exports = function (stream, cb) {
- var chunks = []
- stream.on('data', function (chunk) {
- chunks.push(chunk)
- })
- stream.once('end', function () {
- if (cb) cb(null, Buffer.concat(chunks))
- cb = null
- })
- stream.once('error', function (err) {
- if (cb) cb(err)
- cb = null
- })
-}