mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
refactor(server) join
This commit is contained in:
parent
dabd9f6814
commit
76d32ab80f
1 changed files with 5 additions and 3 deletions
|
|
@ -292,7 +292,9 @@
|
|||
gzip.pipe(response);
|
||||
};
|
||||
|
||||
if (isJoin) {
|
||||
if (!isJoin)
|
||||
Util.exec(callback);
|
||||
else {
|
||||
names = CloudFunc.getJoinArray(path);
|
||||
n = names.length;
|
||||
|
||||
|
|
@ -314,10 +316,10 @@
|
|||
|
||||
funcs.push(minify.bind(null, name));
|
||||
}
|
||||
|
||||
Util.asyncCall(funcs, readPipe);
|
||||
}
|
||||
} else
|
||||
Util.exec(callback);
|
||||
}
|
||||
|
||||
return isJoin;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue