Skip to content

Commit

Permalink
fix: remove unused parameter from executeInSeries
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre Haller committed Feb 26, 2020
1 parent 6203ed4 commit a85a9bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/executeInSeries.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
* @param {Object|null} context - The object the functions must be bound to
* @param {Function} done - The final callback to execute once all functions are executed
*/
export default (callables, args, context) =>
export default (callables, args) =>
new Promise((resolve, reject) => {
try {
callables.forEach(async cb => await cb.apply(context, args));
callables.forEach(async cb => await cb.apply(null, args));
} catch (error) {
return reject(error);
}
Expand Down

0 comments on commit a85a9bf

Please sign in to comment.