univalue: Remove unused and confusing set*() return value

This commit is contained in:
MacroFake 2022-07-29 15:23:04 +02:00
parent 7f79746bf0
commit fa7bef2e80
No known key found for this signature in database
GPG key ID: CE2B75697E69A548
4 changed files with 47 additions and 55 deletions

View file

@ -181,10 +181,10 @@ BOOST_AUTO_TEST_CASE(rpc_format_monetary_values)
BOOST_CHECK_EQUAL(ValueFromAmount(std::numeric_limits<CAmount>::min()).write(), "-92233720368.54775808");
}
static UniValue ValueFromString(const std::string &str)
static UniValue ValueFromString(const std::string& str) noexcept
{
UniValue value;
BOOST_CHECK(value.setNumStr(str));
value.setNumStr(str);
return value;
}