Skip to content
This repository has been archived by the owner on Nov 2, 2021. It is now read-only.

Commit

Permalink
Remove unnecessary fat arrows
Browse files Browse the repository at this point in the history
  • Loading branch information
creynders committed Sep 23, 2016
1 parent 964fcca commit d9479b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ function createThenableHooks(instance, config) {

function addHooks(instance, args) {
const config = {};
_.forEach(args, (mixed) => {
_.forEach(args, function(mixed) {
if (_.isString(mixed)) {
const hookObj = parseHook(mixed);
const fn = instance[hookObj.name];
Expand Down Expand Up @@ -548,7 +548,7 @@ const methods = {
/* istanbul ignore else: nothing _should_ happen */
if (middleware[q.post + ':' + hookObj.name]) middleware[q.post + ':' + hookObj.name] = [];
} else {
_.forEach(middleware, (callbacks, hook) => {
_.forEach(middleware, function(callbacks, hook) {
middleware[hook] = [];
});
}
Expand Down Expand Up @@ -729,7 +729,7 @@ const methods = {
});
dezalgofy((safeDone) => {
iterateAsyncMiddleware(params.context, this.getMiddleware(params.hook), params.args, safeDone);
}, (err) => {
}, function(err) {
if (err) {
return deferred.reject(err);
}
Expand Down

0 comments on commit d9479b4

Please sign in to comment.