mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-25 08:54:10 +00:00
refactor(config) Util.check -> check
This commit is contained in:
parent
9f119eff89
commit
b6bec9e9c1
1 changed files with 3 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue