mirror of
https://github.com/nuintun/command-manager.git
synced 2025-06-07 11:34:05 +08:00
update files
This commit is contained in:
parent
26eec2faf6
commit
f33ddb479b
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user