Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ folly::Optional<std::string> ConfigBase::setValue(
auto oldValue = config_->get<std::string>(propertyName);
config_->set(propertyName, value);
if (oldValue.has_value()) {
return oldValue;
return oldValue.value();
}
return registeredProps_[propertyName];
}
Expand Down
2 changes: 1 addition & 1 deletion presto-native-execution/presto_cpp/main/common/Configs.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class ConfigBase {
const std::string& propertyName) const {
auto val = config_->get<std::string>(propertyName);
if (val.has_value()) {
return val;
return val.value();
}
const auto it = registeredProps_.find(propertyName);
if (it != registeredProps_.end()) {
Expand Down
Loading