fix XRPL_ASSERT(false) to UNREACHABLE

This commit is contained in:
tequ
2026-04-10 17:59:25 +09:00
parent 3df1e668da
commit 16e4f24226

View File

@@ -204,10 +204,7 @@ getLedgerEntrySponsorField(T const& sle, AccountID const& owner)
return sfLowSponsor;
}
// LCOV_EXCL_START
XRPL_ASSERT(
false,
"Should not happen. Owner should be checked before calling "
"this function.");
UNREACHABLE("Should not happen. Owner should be checked before calling this function.");
// LCOV_EXCL_STOP
}
default: