Merge branch 'master' into combined-prs-branch
[poolifier.git] / examples / typescript / websocket-server-pool / ws-worker_threads / src / main.ts
index 6283759d403047be2837b8322147f0741973adcd..d5b2cc78e8e4feda873602ea9b1074e581d3d8f9 100644 (file)
@@ -10,7 +10,7 @@ const wss = new WebSocketServer({ port }, () => {
 })
 
 const emptyFunction = (): void => {
-  /** Intentional */
+  /* Intentional */
 }
 
 wss.on('connection', ws => {
@@ -31,7 +31,7 @@ wss.on('connection', ws => {
                 data: response.data
               })
             )
-            return null
+            return undefined
           })
           .catch(emptyFunction)
         break
@@ -45,7 +45,7 @@ wss.on('connection', ws => {
                 data: response.data
               })
             )
-            return null
+            return undefined
           })
           .catch(emptyFunction)
         break