build: refine linter configuration
[poolifier.git] / src / worker / abstract-worker.ts
index 3718964a1b1de8d14abc2bfd8c09769eefd663f8..ff31fc7cb1879e19435c7942ca34c80b1a5a2051 100644 (file)
@@ -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
   }
 
   /**