repositories
/
poolifier.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e3214b
)
refactor: cleanup worker catch clause
author
Jérôme Benoit
<jerome.benoit@sap.com>
Mon, 14 Aug 2023 19:07:45 +0000
(21:07 +0200)
committer
Jé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
patch
|
blob
|
blame
|
history
diff --git
a/src/worker/abstract-worker.ts
b/src/worker/abstract-worker.ts
index 56a7696f0638fabaaccd7eb4100b7d19e358f0cd..5a61f1cf00126252d71a684e0fd57e242b3b7127 100644
(file)
--- a/
src/worker/abstract-worker.ts
+++ b/
src/worker/abstract-worker.ts
@@
-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()