refactor(socket) onCloudCmd

This commit is contained in:
coderaiser 2013-11-18 08:20:45 +00:00
parent 7ea932359d
commit a0b3171e34

View file

@ -241,7 +241,9 @@
pCommand = Util.removeStr(pCommand, CLOUDCMD);
if (equalPart(pCommand, ' ')) {
if (!equalPart(pCommand, ' '))
lRet = HELP;
else {
pCommand = Util.removeStr(pCommand, ' ');
if (equalPart(pCommand, 'update') && update) {
@ -255,9 +257,6 @@
if(Util.strCmp(pCommand, 'exit'))
process.exit();
}
else {
lRet = HELP;
}
return lRet;
}