refactor: null -> undefined where appropriate
[poolifier.git] / examples / typescript / websocket-server-pool / ws-worker_threads / src / main.ts
index c8478366a77dc18faa0219cbe809935c1ab5669a..d5b2cc78e8e4feda873602ea9b1074e581d3d8f9 100644 (file)
@@ -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