Sometimes it receives nothing. It causes pain to use with other libraries that expect at least a null error.
Consider being used in async.waterfall, we have to
async.waterfall([
function(next) {
wrench.copyDirRecursive(
sourceDir,
destDir,
function(error) {
// The problem with wrench is that when succeeds it will call callback
// with nothing.
if (error) return next(error);
next(null);
});
},
function(next) {
...
}], callback);
};
Sometimes it receives nothing. It causes pain to use with other libraries that expect at least a
null
error.Consider being used in async.waterfall, we have to
instead of