refactor: Replace all old instances of Config with New Config (#1627)

Fixes #1184 
Previous PR's found [here](https://github.com/XRPLF/clio/pull/1593) and
[here](https://github.com/XRPLF/clio/pull/1544)
This commit is contained in:
Peter Chen
2024-12-16 15:33:32 -08:00
committed by GitHub
parent b53cfd0ec1
commit 3c4903a339
103 changed files with 1624 additions and 898 deletions

View File

@@ -95,9 +95,11 @@ PositiveDouble::checkTypeImpl(Value const& num) const
std::optional<Error>
PositiveDouble::checkValueImpl(Value const& num) const
{
if (std::holds_alternative<int64_t>(num) && std::get<int64_t>(num) >= 0)
return std::nullopt;
if (std::get<double>(num) >= 0)
return std::nullopt;
return Error{"Double number must be greater than 0"};
return Error{"Double number must be greater than or equal to 0"};
}
} // namespace util::config