Skip to content

Commit 8392ce7

Browse files
MBkktmbasmanova
authored andcommitted
Update ConfigReader.cpp
1 parent 3c526ac commit 8392ce7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

presto-native-execution/presto_cpp/main/common/ConfigReader.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ std::string requiredProperty(
8787
const velox::config::ConfigBase& properties,
8888
const std::string& name) {
8989
auto value = properties.get<std::string>(name);
90-
if (!value.hasValue()) {
90+
if (!value.has_value()) {
9191
VELOX_USER_FAIL("Missing configuration property {}", name);
9292
}
9393
return value.value();
@@ -120,7 +120,7 @@ std::string getOptionalProperty(
120120
const std::string& name,
121121
const std::string& defaultValue) {
122122
auto value = properties.get<std::string>(name);
123-
if (!value.hasValue()) {
123+
if (!value.has_value()) {
124124
return defaultValue;
125125
}
126126
return value.value();

0 commit comments

Comments
 (0)