Commit e6d5e2ad authored by zeroleak's avatar zeroleak
Browse files

remove invalid error log when guiConfig missing

parent 638fbad8
......@@ -79,11 +79,16 @@ class GuiConfig {
}
validate(config) {
if (!config || !config.API_MODE || !API_MODES[config.API_MODE]) {
if (config) {
if (config.API_MODE && API_MODES[config.API_MODE]) {
// valid
return true
}
// invalid
logger.error("guiConfig is invalid: "+GUI_CONFIG_FILEPATH)
return false
}
return true
// or not existing
return false
}
getApiMode() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment