refactor: cleanup worker catch clause
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 14 Aug 2023 19:07:45 +0000 (21:07 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Mon, 14 Aug 2023 19:07:45 +0000 (21:07 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/worker/abstract-worker.ts

index 56a7696f0638fabaaccd7eb4100b7d19e358f0cd..5a61f1cf00126252d71a684e0fd57e242b3b7127 100644 (file)
@@ -344,7 +344,7 @@ export abstract class AbstractWorker<
         // eslint-disable-next-line @typescript-eslint/no-invalid-void-type
         this.opts.killHandler?.() as void
         this.sendToMainWorker({ kill: 'success', workerId: this.id })
-      } catch (error) {
+      } catch {
         this.sendToMainWorker({ kill: 'failure', workerId: this.id })
       } finally {
         this.emitDestroy()