mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-06 18:26:51 +00:00
chore: Fix tests for clang-tidy bugprone-unchecked-optional-access check (#6502)
This commit is contained in:
@@ -88,7 +88,7 @@ class View_test : public beast::unit_test::suite
|
||||
auto const next = v.succ(k(id).key);
|
||||
if (answer)
|
||||
{
|
||||
if (BEAST_EXPECT(next))
|
||||
if (BEAST_EXPECT(next); next.has_value())
|
||||
BEAST_EXPECT(*next == k(*answer).key);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user