fix: Remaining clang-tidy unchecked optionals (#6979)

This commit is contained in:
Alex Kremer
2026-04-23 17:21:01 +01:00
committed by GitHub
parent 7cd503859e
commit 19da25812b
40 changed files with 240 additions and 63 deletions

View File

@@ -142,9 +142,10 @@ class Hooks_test : public beast::unit_test::suite
}
case STI_ACCOUNT: {
// NOLINTNEXTLINE(bugprone-unchecked-optional-access)
// NOLINTBEGIN(bugprone-unchecked-optional-access)
AccountID const id =
*parseBase58<AccountID>("rwfSjJNK2YQuN64bSWn7T2eY9FJAyAPYJT");
// NOLINTEND(bugprone-unchecked-optional-access)
dummy.setAccountID(f, id);
BEAST_EXPECT(dummy.getAccountID(f) == id);
BEAST_EXPECT(dummy.isFieldPresent(f));