X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fworker%2FWorkerAbstract.ts;h=2803eea464da27115e45e1a6a3546fdee46418a9;hb=59b6ed8d1db313ef3371efd8ab5e039cf3dedab0;hp=f677794883822ef2f4b2c1f075c793ae90612af0;hpb=df3b86f788b27176f1a86f8de2141dcc43943752;p=e-mobility-charging-stations-simulator.git diff --git a/src/worker/WorkerAbstract.ts b/src/worker/WorkerAbstract.ts index f6777948..2803eea4 100644 --- a/src/worker/WorkerAbstract.ts +++ b/src/worker/WorkerAbstract.ts @@ -23,10 +23,8 @@ export abstract class WorkerAbstract { poolMinSize: WorkerConstants.DEFAULT_POOL_MIN_SIZE, poolMaxSize: WorkerConstants.DEFAULT_POOL_MAX_SIZE, elementsPerWorker: WorkerConstants.DEFAULT_ELEMENTS_PER_WORKER, - poolOptions: {}, - messageHandler: () => { - /* This is intentional */ - }, + poolOptions: WorkerConstants.EMPTY_OBJECT, + messageHandler: WorkerConstants.EMPTY_FUNCTION, } ) { if (!workerScript) {