From 89ed94a62077d6617f66124ccba4177f32b771f0 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 14 Jul 2014 09:41:42 -0400 Subject: [PATCH] fix(minify) optimize isExist: error always null --- lib/server/minify.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/server/minify.js b/lib/server/minify.js index 7ef620a9..702cd6a6 100644 --- a/lib/server/minify.js +++ b/lib/server/minify.js @@ -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) {