Explorar o código

Minor bugfix.

Eugene Lazutkin %!s(int64=7) %!d(string=hai) anos
pai
achega
1007bf4ebe
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      index.js

+ 1 - 1
index.js

@@ -87,7 +87,7 @@ class Chain extends Duplex {
 
     this.streams = fns
       .filter(fn => fn)
-      .map((fn, index) => {
+      .map((fn, index, fns) => {
         if (typeof fn === 'function' || fn instanceof Array) return Chain.convertToTransform(fn);
         if (
           fn instanceof Duplex ||