From 3c5dc3fbade52c4f8e707279cd3089c57210e241 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Tue, 15 Aug 2023 20:44:57 +0200 Subject: [PATCH] build: refine linter configuration MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .eslintrc.js | 1 + src/worker/abstract-worker.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index 9bf41f26..7453ecbf 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -68,6 +68,7 @@ module.exports = defineConfig({ 'localhost', 'microjob', 'mjs', + 'nodemailer', 'npx', 'num', 'os', diff --git a/src/worker/abstract-worker.ts b/src/worker/abstract-worker.ts index 3718964a..ff31fc7c 100644 --- a/src/worker/abstract-worker.ts +++ b/src/worker/abstract-worker.ts @@ -103,8 +103,8 @@ export abstract class AbstractWorker< this.opts.killBehavior = opts.killBehavior ?? DEFAULT_KILL_BEHAVIOR this.opts.maxInactiveTime = opts.maxInactiveTime ?? DEFAULT_MAX_INACTIVE_TIME - delete this.opts.async this.opts.killHandler = opts.killHandler ?? EMPTY_FUNCTION + delete this.opts.async } /** -- 2.34.1