From: Jérôme Benoit Date: Fri, 17 Apr 2020 19:13:30 +0000 (+0200) Subject: Remove wrong eslint-disable-next-line class-methods-use-this X-Git-Tag: v1.0.1-0~354 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=092756ae62c860117069eaf6ae483a589a0989c0;p=e-mobility-charging-stations-simulator.git Remove wrong eslint-disable-next-line class-methods-use-this Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/Worker.js b/src/charging-station/Worker.js index 7e899d40..db82e821 100644 --- a/src/charging-station/Worker.js +++ b/src/charging-station/Worker.js @@ -24,7 +24,6 @@ class Wrk { * @param {Number} numConcurrentWorkers * @private */ - // eslint-disable-next-line class-methods-use-this set _numConcurrentWorkers(numConcurrentWorkers) { if (numConcurrentWorkers > 10) { EventEmitter.defaultMaxListeners = numConcurrentWorkers + 1; @@ -32,7 +31,6 @@ class Wrk { this._concurrentWorkers = numConcurrentWorkers; } - // eslint-disable-next-line class-methods-use-this get _numConcurrentWorkers() { return this._concurrentWorkers; }