Skip to content

Commit

Permalink
clang
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnxie999 committed Jan 8, 2024
1 parent c8d638b commit 78a6a93
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ripple/ledger/impl/View.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1563,7 +1563,9 @@ requireAuth(ReadView const& view, Issue const& issue, AccountID const& account)
sle && sle->getFieldU32(sfFlags) & lsfMPTRequireAuth)
{
auto const mptokenID = keylet::mptoken(mptID.key, account);
if (auto const tokSle = view.read(mptokenID); (sle->getFlags() & lsfMPTRequireAuth) && !(tokSle->getFlags() & lsfMPTAuthorized))
if (auto const tokSle = view.read(mptokenID);
(sle->getFlags() & lsfMPTRequireAuth) &&
!(tokSle->getFlags() & lsfMPTAuthorized))
return TER{tecNO_AUTH};
}
return tesSUCCESS;
Expand Down

0 comments on commit 78a6a93

Please sign in to comment.