From 1ec4eaa2734c050d1c0916e35bd7b1a42b8da120 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Fri, 1 May 2015 14:17:11 -0700 Subject: [PATCH] style --- server.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 +}