feature(util) retExec -> exec.ret

This commit is contained in:
coderaiser 2014-05-23 03:01:33 -04:00
parent 58a3a6ff3e
commit 7332c7b325
15 changed files with 38 additions and 38 deletions

View file

@ -24,7 +24,7 @@
function create(params) {
var gzip, read, write, isFsWrite,
p = params,
func = Util.retExec(p.callback),
func = Util.exec.ret(p.callback),
options = {
bufferSize: 4 * 1024
};
@ -84,7 +84,7 @@
});
readStream.on('error', function(error) {
Util.retExec(callback, error);
Util.exec.ret(callback, error);
});
readStream.on('end', function() {

View file

@ -431,7 +431,7 @@
names = [];
}
process = Util.retExec(callbackProcess, from);
process = Util.exec.ret(callbackProcess, from);
if (isLast)
Util.exec(callback, null);

View file

@ -13,7 +13,7 @@
exports.onDelete = onDelete;
function onDelete(name, files, query, callback) {
var func = Util.retExec(callback),
var func = Util.exec.ret(callback),
fileNames = Util.slice(files),
rmFile = fs.unlink,
rmDir = fse.delete;

View file

@ -13,7 +13,7 @@
function onGet(query, name, callback) {
var error, hash,
func = Util.retExec(callback);
func = Util.exec.ret(callback);
switch (query) {
case 'size':

View file

@ -16,7 +16,7 @@
exports.onPut = onPut;
function onPut(name, query, readStream, callback) {
var func = Util.retExec(callback),
var func = Util.exec.ret(callback),
baseName = path.basename(name);
switch(query) {