refactor(config) Util.check -> check

This commit is contained in:
coderaiser 2014-11-24 10:19:12 -05:00
parent 9f119eff89
commit b6bec9e9c1

View file

@ -15,7 +15,7 @@
Util = require(DIR_LIB + 'util'),
CloudFunc = require(DIR_LIB + 'cloudfunc'),
check = Util.check,
tryRequire = require(DIR_SERVER + 'tryRequire'),
tryOptions = {log: true, exit: true},
@ -53,7 +53,7 @@
function save(callback) {
var data = Util.json.stringify(config);
Util.check(arguments, ['callback']);
check(arguments, ['callback']);
if (data)
fs.writeFile(ConfigHome, data, callback);
@ -62,7 +62,7 @@
}
function socket(sock) {
Util.check(arguments, ['socket']);
check(arguments, ['socket']);
sock.of('/config')
.on('connection', function(socket) {