mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
refactor(commander) checkParams
This commit is contained in:
parent
609799c490
commit
d5be099df5
1 changed files with 2 additions and 5 deletions
|
|
@ -12,7 +12,8 @@
|
|||
|
||||
var main = global.cloudcmd.main,
|
||||
fs = main.fs,
|
||||
Util = main.util;
|
||||
Util = main.util,
|
||||
checkParams = main.checkCallBackParams;
|
||||
|
||||
exports.getDirContent = function(pPath, pCallBack) {
|
||||
var lRet = Util.isString(pPath);
|
||||
|
|
@ -155,10 +156,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
function checkParams(pParams) {
|
||||
return Util.checkObj(pParams, ['error', 'data', 'params']);
|
||||
}
|
||||
|
||||
function getDirPath(pPath) {
|
||||
var lRet = pPath;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue