mirror of
https://github.com/nuintun/command-manager.git
synced 2026-01-09 23:32:11 +08:00
update files
This commit is contained in:
@@ -251,6 +251,11 @@ AppConfigure.prototype = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// invalid configure
|
||||||
|
if (!verifyConfigure(configure)) {
|
||||||
|
return fail.call(context, new ConfigureError('VALIDERROR', ERRORMESSAGE.VALIDERROR));
|
||||||
|
}
|
||||||
|
|
||||||
done.call(context, configure);
|
done.call(context, configure);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
@@ -280,11 +285,8 @@ AppConfigure.prototype = {
|
|||||||
return fail.call(context, new ConfigureError('PARSEERROR', ERRORMESSAGE.PARSEERROR));
|
return fail.call(context, new ConfigureError('PARSEERROR', ERRORMESSAGE.PARSEERROR));
|
||||||
}
|
}
|
||||||
|
|
||||||
// verify configure
|
|
||||||
var invalid = !verifyConfigure(configure);
|
|
||||||
|
|
||||||
// invalid configure
|
// invalid configure
|
||||||
if (invalid) {
|
if (!verifyConfigure(configure)) {
|
||||||
return fail.call(context, new ConfigureError('VALIDERROR', ERRORMESSAGE.VALIDERROR));
|
return fail.call(context, new ConfigureError('VALIDERROR', ERRORMESSAGE.VALIDERROR));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user