diff --git a/server.js b/server.js index 75d983c..604539a 100644 --- a/server.js +++ b/server.js @@ -487,4 +487,7 @@ Server.prototype._onWebSocketError = function (socket, err) { self._onWebSocketClose(socket) } -function toNumber (x) { return (x = Number(x)) >= 0 ? x : false } +function toNumber (x) { + x = Number(x) + return x >= 0 ? x : false +}