mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-03 00:36:48 +00:00
chore: Fix tests for clang-tidy bugprone-unchecked-optional-access check (#6502)
This commit is contained in:
@@ -210,7 +210,7 @@ public:
|
||||
if (BEAST_EXPECT(jrr.isMember(jss::ledger)))
|
||||
{
|
||||
auto data = strUnHex(jrr[jss::ledger][jss::ledger_data].asString());
|
||||
if (BEAST_EXPECT(data))
|
||||
if (BEAST_EXPECT(data); data.has_value())
|
||||
{
|
||||
Serializer s(data->data(), data->size());
|
||||
std::uint32_t seq = 0;
|
||||
|
||||
Reference in New Issue
Block a user