mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 00:47:01 +00:00
refactor(join) callback -> next
This commit is contained in:
parent
aaab8a773b
commit
367e84b4b1
1 changed files with 2 additions and 2 deletions
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
module.exports = join;
|
||||
|
||||
function join(before, req, res, callback) {
|
||||
function join(before, req, res, next) {
|
||||
var names,
|
||||
exec = Util.exec,
|
||||
readFunc = exec.with(readPipe, req, res),
|
||||
|
|
@ -20,7 +20,7 @@
|
|||
isJoin = path.match(regExp);
|
||||
|
||||
if (!isJoin) {
|
||||
callback();
|
||||
next();
|
||||
} else {
|
||||
names = CloudFunc.getJoinArray(path);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue