mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
fix(minify) optimize isExist: error always null
This commit is contained in:
parent
86c7767e97
commit
89ed94a620
1 changed files with 1 additions and 2 deletions
|
|
@ -40,8 +40,7 @@
|
|||
|
||||
isChanged = exec.with(IsChanged.isFileChanged, name),
|
||||
isExist = function(callback) {
|
||||
var func = exec.ret(callback, null);
|
||||
fs.exists(minifyName, func);
|
||||
fs.exists(minifyName, callback);
|
||||
};
|
||||
|
||||
exec.parallel([isChanged, isExist], function(error, changed, exists) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue