diff options
Diffstat (limited to 'lib/concat-stream.js')
-rw-r--r-- | lib/concat-stream.js | 14 |
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 - }) -} |