fix: Fix extra brackets in warnings (#1519)

Fixes #1518
This commit is contained in:
Sergey Kuznetsov
2024-07-05 12:03:22 +01:00
committed by GitHub
parent aa86075159
commit 29847caf0e
2 changed files with 46 additions and 1 deletions

View File

@@ -94,7 +94,7 @@ struct ReturnType {
* @param warnings The warnings generated by the RPC call
*/
ReturnType(std::expected<boost::json::value, Status> result, boost::json::array warnings = {})
: result{std::move(result)}, warnings{std::move(warnings)}
: result{std::move(result)}, warnings(std::move(warnings))
{
}