From 015ae51b199024ff193b148e4c09ee69067a1a0b Mon Sep 17 00:00:00 2001 From: coderaiser Date: Tue, 9 Feb 2016 10:52:18 -0500 Subject: [PATCH] feature(config) rm Util --- lib/server/config.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/server/config.js b/lib/server/config.js index 0c0385da..1c10ed35 100644 --- a/lib/server/config.js +++ b/lib/server/config.js @@ -9,7 +9,6 @@ password = require(DIR_SERVER + 'password'), exit = require(DIR_SERVER + 'exit'), - Util = require(DIR_LIB + 'util'), CloudFunc = require(DIR_LIB + 'cloudfunc'), pipe = require('pipe-io'), @@ -93,10 +92,9 @@ socket.emit('config', config); socket.on('message', function(json) { - var data, - is = Util.type.object(json); + var data; - if (!is) { + if (typeof json !== 'object') { socket.emit('err', 'Error: Wrong data type!'); } else { cryptoPass(json);