Apply suggestions from code review

Co-authored-by: depthfirst-app[bot] <184448029+depthfirst-app[bot]@users.noreply.github.com>
This commit is contained in:
Jingchen
2026-07-14 13:59:47 +01:00
committed by GitHub
parent 2ed465996e
commit bd038e1b61

View File

@@ -479,7 +479,11 @@ ValidVault::finalize(
// pending loan (Borrower present, CounterpartySignature absent).
if (afterVault.assetsReserved != beforeVault.assetsReserved)
{
bool const pendingLoanSet = txnType == ttLOAN_SET && tx.isFieldPresent(sfBorrower) &&
bool const pendingLoanSet = txnType == ttLOAN_SET &&
tx.isFieldPresent(sfBorrower) &&
tx.isFieldPresent(sfStartDate) &&
!tx.isFieldPresent(sfCounterpartySignature) &&
!tx.isFieldPresent(sfCounterparty);
!tx.isFieldPresent(sfCounterpartySignature);
if (txnType != ttLOAN_DELETE && txnType != ttLOAN_ACCEPT && !pendingLoanSet)
{