Review feedback from @Bronek: Add an assert

This commit is contained in:
Ed Hennis
2025-10-01 14:14:13 -04:00
parent 681c179174
commit 1888784e8e

View File

@@ -160,6 +160,10 @@ doAccountInfo(RPC::JsonContext& context)
{
// Remove the ID suffix from the field name.
name = name.substr(0, name.size() - 2);
XRPL_ASSERT_PARTS(
!name.empty(),
"ripple::doAccountInfo",
"name is not empty")
}
// ValidPseudoAccounts invariant guarantees that only one field
// can be set