fix: fix formatting issue.
[poolifier.git] / examples / typescript / http-server-pool / express-hybrid / src / express-worker.ts
index c6174a991d23c7ff18066f64486a1b2550de0fab..db05cdbeb0cc745bfe77b33ee200dc1d4d2ba835 100644 (file)
@@ -52,7 +52,7 @@ ClusterWorkerResponse
     application.all('/api/echo', (req: Request, res: Response) => {
       ExpressWorker.requestHandlerPool
         .execute({ data: req.body }, 'echo')
-        .then((response) => {
+        .then(response => {
           return res.send(response.data).end()
         })
         .catch(emptyFunction)
@@ -62,7 +62,7 @@ ClusterWorkerResponse
       const { number } = req.params
       ExpressWorker.requestHandlerPool
         .execute({ data: { number: parseInt(number) } }, 'factorial')
-        .then((response) => {
+        .then(response => {
           return res.send(response.data).end()
         })
         .catch(emptyFunction)