mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
config_passthrough.cpp
This commit is contained in:
parent
016b980199
commit
2d925d871f
1 changed files with 2 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue