chore(rest) "){" -> ") {"

This commit is contained in:
coderaiser 2013-08-15 15:06:05 +00:00
parent b2fc62334e
commit 53420f1154

View file

@ -179,7 +179,7 @@
else
main.sendError(pParams, pError);
});
else if (lQuery === 'files'){
else if (lQuery === 'files') {
getBody(p.request, function(pBody) {
var lFiles = Util.parseJSON(pBody),
n = lFiles.length,
@ -187,7 +187,7 @@
log = Util.retExec(Util.log),
lAssync = 0;
function stat(pStat){
function stat(pStat) {
var lRet = Util.checkObjTrue(pStat, 'params') &&
Util.checkObjTrue(pStat.params, 'name');
@ -248,7 +248,7 @@
var p = pParams,
lCmd = p.command;
switch(lCmd){
switch(lCmd) {
case '':
p.data = {
info: 'Cloud Commander API v1'
@ -317,7 +317,7 @@
case 'mv':
if( Util.checkObjTrue(lFiles, ['from', 'to']) )
fs.rename(lFiles.from, lFiles.to, function(pError){
fs.rename(lFiles.from, lFiles.to, function(pError) {
if(!pError)
main.sendResponse(pParams);
else