Skip to content
This repository has been archived by the owner on Feb 28, 2022. It is now read-only.

Commit

Permalink
fix(pipe): Do not filter out non-functions before running the pipeline
Browse files Browse the repository at this point in the history
Adding non functions is a bug which we should not hide…
  • Loading branch information
koraa authored and tripodsan committed May 14, 2019
1 parent b813fdd commit 083d902
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/pipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,6 @@ class Pipeline {
// and inner.posts (those that run after) – reduce using the merge function and return
// the resolved value
return [...this._pres, this._oncef, ...this._posts]
.filter(e => typeof e === 'function')
.reduce(async (ctx, fn, index) => merge(await ctx, fn, index), context);
}
}
Expand Down

0 comments on commit 083d902

Please sign in to comment.