From b9f1c97518bbf1075d65e39d5fd84fae5a119d56 Mon Sep 17 00:00:00 2001 From: tequ Date: Tue, 17 Mar 2026 17:43:35 +0900 Subject: [PATCH] format SetTrust.cpp --- src/libxrpl/tx/transactors/token/SetTrust.cpp | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/src/libxrpl/tx/transactors/token/SetTrust.cpp b/src/libxrpl/tx/transactors/token/SetTrust.cpp index eb6d846cb9..e04dbdd875 100644 --- a/src/libxrpl/tx/transactors/token/SetTrust.cpp +++ b/src/libxrpl/tx/transactors/token/SetTrust.cpp @@ -602,9 +602,10 @@ SetTrust::doApply() terResult = trustDelete(view(), sleRippleState, uLowAccountID, uHighAccountID, viewJ); } // Reserve is not scaled by load. - else if (auto const ret = - checkInsufficientReserve(view(), ctx_.tx, sle, mPriorBalance, txSponsorSle, 0); - !freeTrustLine && bReserveIncrease && !isTesSuccess(ret)) + else if ( + auto const ret = + checkInsufficientReserve(view(), ctx_.tx, sle, mPriorBalance, txSponsorSle, 0); + !freeTrustLine && bReserveIncrease && !isTesSuccess(ret)) { JLOG(j_.trace()) << "Delay transaction: Insufficent reserve to " "add trust line."; @@ -632,14 +633,15 @@ SetTrust::doApply() JLOG(j_.trace()) << "Redundant: Setting non-existent ripple line to defaults."; return tecNO_LINE_REDUNDANT; } - else if (auto const ret = checkInsufficientReserve( - ctx_.view(), - ctx_.tx, - sle, - mPriorBalance, - txSponsorSle, - 1); - !freeTrustLine && !isTesSuccess(ret)) // Reserve is not scaled by load. + else if ( + auto const ret = checkInsufficientReserve( + ctx_.view(), + ctx_.tx, + sle, + mPriorBalance, + txSponsorSle, + 1); + !freeTrustLine && !isTesSuccess(ret)) // Reserve is not scaled by load. { JLOG(j_.trace()) << "Delay transaction: Line does not exist. " "Insufficent reserve to create line.";