From 9b8055f380163fff4b085df1d892f6ba135cb64f Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Thu, 22 Feb 2018 09:49:47 +0000 Subject: [PATCH 1/2] Update bw-readable-stream.js --- src/stats/bw-readable-stream.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stats/bw-readable-stream.js b/src/stats/bw-readable-stream.js index aa9f0701a..c36fea518 100644 --- a/src/stats/bw-readable-stream.js +++ b/src/stats/bw-readable-stream.js @@ -5,7 +5,7 @@ const pump = require('pump') const transformChunk = require('./bw-util') module.exports = (send) => { - return (hash, opts) => { + return (opts) => { opts = opts || {} const pt = new Stream.Transform({ From 008483cc4115cab2b1f88734583a2b64f438eb09 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Thu, 22 Feb 2018 09:50:04 +0000 Subject: [PATCH 2/2] Update bw-pull-stream.js --- src/stats/bw-pull-stream.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stats/bw-pull-stream.js b/src/stats/bw-pull-stream.js index 51f5a86d9..f302a3a5f 100644 --- a/src/stats/bw-pull-stream.js +++ b/src/stats/bw-pull-stream.js @@ -6,7 +6,7 @@ const transformChunk = require('./bw-util') const deferred = require('pull-defer') module.exports = (send) => { - return (hash, opts) => { + return (opts) => { opts = opts || {} const p = deferred.source()