mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
univalue: Remove unused and confusing set*() return value
This commit is contained in:
parent
7f79746bf0
commit
fa7bef2e80
4 changed files with 47 additions and 55 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue