removed unecessary code&comment
authorHazbinFaulted <lucas.migeon@epitech.eu>
Mon, 25 Apr 2022 12:18:51 +0000 (14:18 +0200)
committerHazbinFaulted <lucas.migeon@epitech.eu>
Mon, 25 Apr 2022 12:18:51 +0000 (14:18 +0200)
src/charging-station/Bootstrap.ts
src/worker/WorkerFactory.ts

index 18e934db0351ace719cf67f4ca44dd606f0a09e5..d39c705c89e19334dd95d8654e5126fc40228406 100644 (file)
@@ -34,7 +34,7 @@ export default class Bootstrap {
   private constructor() {
     this.started = false;
     this.workerScript = path.join(
-      path.resolve(__dirname, '../'), // wouldn't path.resolve(./ChargingStationWorker.js) achieve the same result ?
+      path.resolve(__dirname, '../'),
       'charging-station',
       'ChargingStationWorker.js'
     );
index 70bcc3862c4fca8c42a66d7e0f52e7568bfbef80..b297f42b231715643ef14761ca1c45a93295a5cf 100644 (file)
@@ -30,9 +30,7 @@ export default class WorkerFactory {
     workerOptions?.messageHandler &&
       // eslint-disable-next-line @typescript-eslint/no-misused-promises
       (workerOptions.poolOptions.messageHandler = workerOptions.messageHandler);
-    console.log('before');
     let workerImplementation: WorkerAbstract<T> = null;
-    console.log(workerImplementation);
     switch (workerProcessType) {
       case WorkerProcessType.WORKER_SET:
         workerOptions.elementsPerWorker =