We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d27bbcb commit b9aafa8Copy full SHA for b9aafa8
fable/src/fable/conf.cpp
@@ -48,8 +48,7 @@ Conf::Conf(const std::string& file) : file_(file) {
48
49
bool Conf::has(const JsonPointer& key) const {
50
try {
51
- data_.at(key);
52
- return true;
+ return data_.contains(key);
53
} catch (nlohmann::detail::exception&) {
54
// Exception is probably one of json::out_of_range or json::parse_error.
55
return false;
0 commit comments