diff options
author | MacroFake <falke.marco@gmail.com> | 2022-07-29 15:23:04 +0200 |
---|---|---|
committer | MacroFake <falke.marco@gmail.com> | 2022-07-29 15:24:42 +0200 |
commit | fa7bef2e80c9c290b3e97114cfa7afdea5cbd53c (patch) | |
tree | 77d1892a411678c4b943110d35384c27cb9e4705 /src/test/rpc_tests.cpp | |
parent | 7f79746bf046d0028bb68f265804b9774dec2acb (diff) |
univalue: Remove unused and confusing set*() return value
Diffstat (limited to 'src/test/rpc_tests.cpp')
-rw-r--r-- | src/test/rpc_tests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/rpc_tests.cpp b/src/test/rpc_tests.cpp index 3e9e04da25..a52530e179 100644 --- a/src/test/rpc_tests.cpp +++ b/src/test/rpc_tests.cpp @@ -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; } |