Refactor(ES6): Lint fixes
This commit is contained in:
parent
2a76e5ae6b
commit
a9ae64a6c9
|
@ -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)));
|
||||
|
|
Loading…
Reference in New Issue