build: make eslint configuration use strict type checking
[poolifier.git] / examples / typescript / http-server-pool / fastify-cluster / src / worker.ts
index 1551cb282ede3679ade624acb473a8ac2ab568c3..5fca89058695c7a45614b15d2eeb10bd690d9491 100644 (file)
@@ -36,7 +36,7 @@ class FastifyWorker extends ClusterWorker<WorkerData, WorkerResponse> {
     await FastifyWorker.fastify.listen({ port })
     return {
       status: true,
-      port: (FastifyWorker.fastify.server.address() as AddressInfo)?.port
+      port: (FastifyWorker.fastify.server.address() as AddressInfo).port
     }
   }