Skip to content
Permalink
Browse files
Remove unnecessary variable (#43)
  • Loading branch information
LinusU authored and sindresorhus committed Apr 19, 2017
1 parent a2cec4c commit 920a8197d4e2f938e42f6a2f675e7da9fcc3870f
Showing 1 changed file with 1 addition and 2 deletions.
@@ -1,7 +1,6 @@
'use strict';

const processFn = (fn, opts) => function () {
const that = this;
const P = opts.promiseModule;
const args = new Array(arguments.length);

@@ -31,7 +30,7 @@ const processFn = (fn, opts) => function () {
}
});

fn.apply(that, args);
fn.apply(this, args);
});
};

0 comments on commit 920a819

Please sign in to comment.