Refactor(ES6): Lint fixes

This commit is contained in:
SendilKumar N 2017-02-22 16:12:24 +08:00
parent 2a76e5ae6b
commit a9ae64a6c9
2 changed files with 4 additions and 4 deletions

View File

@ -5,6 +5,6 @@
"use strict";
class OptionsApply {
process(options, compiler) { }
process(options, compiler) {}
}
module.exports = OptionsApply;

View File

@ -25,7 +25,7 @@ class ProgressPlugin {
compiler.compilers.forEach(function(compiler, idx) {
compiler.apply(new ProgressPlugin((p, msg) => {
states[idx] = Array.prototype.slice.apply(arguments);
handler(...[
handler.apply(null, [
states.map(state => state && state[0] || 0).reduce((a, b) => a + b) / states.length,
`[${idx}] ${msg}`
].concat(Array.prototype.slice.call(arguments, 2)));