mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-30 10:30:22 +00:00
fix clang-tidy
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user