config_passthrough.cpp

This commit is contained in:
Antonio SJ Musumeci
2024-04-08 17:52:46 -05:00
parent 016b980199
commit 2d925d871f
+2 -3
View File
@@ -34,11 +34,10 @@ Passthrough::from_string(const std::string &s_)
better_enums::optional<PassthroughEnum> e;
e = PassthroughEnum::_from_string_nothrow(s_.c_str());
if(!x)
if(!e)
return -EINVAL;
_data = *x;
_data = *e;
return 0;
}