fix clang-tidy

This commit is contained in:
Mayukha Vadari
2026-07-27 15:17:09 -04:00
parent 5c28510402
commit 9dd4e003af

View File

@@ -741,8 +741,10 @@ class LedgerRPC_test : public beast::unit_test::Suite
BEAST_EXPECT(txns[i].isMember(jss::ctid));
auto const expectedCtid =
RPC::encodeCTID(jrr[jss::ledger][jss::ledger_index].asUInt(), i, netID);
// NOLINTBEGIN(bugprone-unchecked-optional-access)
if (BEAST_EXPECT(expectedCtid.has_value()))
BEAST_EXPECT(txns[i][jss::ctid] == expectedCtid.value());
// NOLINTEND(bugprone-unchecked-optional-access)
}
}