From: Jérôme Benoit Date: Tue, 15 Aug 2023 18:44:57 +0000 (+0200) Subject: build: refine linter configuration X-Git-Tag: v2.6.27~1 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=3c5dc3fbade52c4f8e707279cd3089c57210e241;p=poolifier.git build: refine linter configuration Signed-off-by: Jérôme Benoit --- 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 } /**