refactor(hash) change structure

This commit is contained in:
coderaiser 2013-11-19 09:33:51 +00:00
parent 62546f1eae
commit 2cea2c70bc
2 changed files with 26 additions and 29 deletions

View file

@ -117,13 +117,13 @@
});
});
else if (Util.strCmp(lQuery, 'hash')) {
if (!Hash) {
hash = Hash.create();
if (!hash) {
lMsg = 'not suported, try update node';
lMsg = CloudFunc.formatMsg('hash', lMsg, 'error');
sendError(p, lMsg);
} else {
hash = Hash.create();
} else
pipe.create({
from : p.name,
write : hash,
@ -134,7 +134,6 @@
});
}
});
}
} else
fs.stat(p.name, function(pError, pStat) {
checkSendError(pError, p, function() {