From f33ddb479bbcac66d400b37f4b6ece5bec2bc5bf Mon Sep 17 00:00:00 2001 From: nuintun Date: Mon, 23 Nov 2015 23:04:57 +0800 Subject: [PATCH] update files --- bin/app-configure.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/bin/app-configure.js b/bin/app-configure.js index 87db95e..e3f73bb 100644 --- a/bin/app-configure.js +++ b/bin/app-configure.js @@ -251,6 +251,11 @@ AppConfigure.prototype = { } } + // invalid configure + if (!verifyConfigure(configure)) { + return fail.call(context, new ConfigureError('VALIDERROR', ERRORMESSAGE.VALIDERROR)); + } + done.call(context, configure); }); }, @@ -280,11 +285,8 @@ AppConfigure.prototype = { return fail.call(context, new ConfigureError('PARSEERROR', ERRORMESSAGE.PARSEERROR)); } - // verify configure - var invalid = !verifyConfigure(configure); - // invalid configure - if (invalid) { + if (!verifyConfigure(configure)) { return fail.call(context, new ConfigureError('VALIDERROR', ERRORMESSAGE.VALIDERROR)); }