Skip to content

Commit a9ae64a

Browse files
committed
Refactor(ES6): Lint fixes
1 parent 2a76e5a commit a9ae64a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/OptionsApply.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
"use strict";
66

77
class OptionsApply {
8-
process(options, compiler) { }
8+
process(options, compiler) {}
99
}
1010
module.exports = OptionsApply;

lib/ProgressPlugin.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ class ProgressPlugin {
2525
compiler.compilers.forEach(function(compiler, idx) {
2626
compiler.apply(new ProgressPlugin((p, msg) => {
2727
states[idx] = Array.prototype.slice.apply(arguments);
28-
handler(...[
29-
states.map(state => state && state[0] || 0).reduce((a, b) => a + b) / states.length,
28+
handler.apply(null, [
29+
states.map(state => state && state[0] || 0).reduce((a, b) => a + b) / states.length,
3030
`[${idx}] ${msg}`
3131
].concat(Array.prototype.slice.call(arguments, 2)));
3232
}));
@@ -42,7 +42,7 @@ class ProgressPlugin {
4242
0.1 + (doneModules / Math.max(lastModulesCount, moduleCount)) * 0.6,
4343
"building modules",
4444
`${doneModules}/${moduleCount} modules`,
45-
`${activeModules.length} active`,
45+
`${activeModules.length} active`,
4646
activeModules[activeModules.length - 1]
4747
);
4848
};

0 commit comments

Comments
 (0)