mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
Remove duplicated code from merge
This commit is contained in:
parent
679f620a07
commit
2c7335fecc
1 changed files with 0 additions and 2 deletions
|
|
@ -586,8 +586,6 @@ UniValue RPCHelpMan::HandleRequest(const JSONRPCRequest& request) const
|
||||||
throw std::runtime_error(ToString());
|
throw std::runtime_error(ToString());
|
||||||
}
|
}
|
||||||
const UniValue ret = m_fun(*this, request);
|
const UniValue ret = m_fun(*this, request);
|
||||||
if (!std::any_of(m_results.m_results.begin(), m_results.m_results.end(), [ret](const RPCResult& res) { return res.MatchesType(ret); })) {
|
|
||||||
}
|
|
||||||
CHECK_NONFATAL(std::any_of(m_results.m_results.begin(), m_results.m_results.end(), [ret](const RPCResult& res) { return res.MatchesType(ret); }));
|
CHECK_NONFATAL(std::any_of(m_results.m_results.begin(), m_results.m_results.end(), [ret](const RPCResult& res) { return res.MatchesType(ret); }));
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue