Allow for the omission of the insight node in bloom.yaml (as we no longer have any mandatory Insight config params)
This commit is contained in:
@@ -311,15 +311,7 @@ void Application::loadProjectConfiguration() {
|
||||
this->environmentConfig = selectedEnvironmentIt->second;
|
||||
|
||||
#ifndef EXCLUDE_INSIGHT
|
||||
if (this->environmentConfig->insightConfig.has_value()) {
|
||||
this->insightConfig = this->environmentConfig->insightConfig.value();
|
||||
|
||||
} else if (this->projectConfig->insightConfig.has_value()) {
|
||||
this->insightConfig = this->projectConfig->insightConfig.value();
|
||||
|
||||
} else {
|
||||
throw InvalidConfig("Insight configuration missing.");
|
||||
}
|
||||
this->insightConfig = this->environmentConfig->insightConfig.value_or(this->projectConfig->insightConfig);
|
||||
#endif
|
||||
|
||||
if (this->environmentConfig->debugServerConfig.has_value()) {
|
||||
|
||||
Reference in New Issue
Block a user