refactor: renable standard JS linter rules
[poolifier.git] / examples / typescript / http-server-pool / fastify-cluster / src / worker.ts
index 2f6c8f6dec1fcf405c8ce5bdb78a51c84c7c1915..1551cb282ede3679ade624acb473a8ac2ab568c3 100644 (file)
@@ -16,7 +16,7 @@ class FastifyWorker extends ClusterWorker<WorkerData, WorkerResponse> {
   private static readonly startFastify = async (
     workerData?: WorkerData
   ): Promise<WorkerResponse> => {
-    const { port } = workerData as WorkerData
+    const { port } = workerData!
 
     FastifyWorker.fastify = Fastify({
       logger: true