diff --git a/src/libxrpl/ledger/helpers/TokenHelpers.cpp b/src/libxrpl/ledger/helpers/TokenHelpers.cpp index ededadaad4..cbdbd13b30 100644 --- a/src/libxrpl/ledger/helpers/TokenHelpers.cpp +++ b/src/libxrpl/ledger/helpers/TokenHelpers.cpp @@ -594,14 +594,7 @@ removeEmptyHolding( { return std::visit( [&](TIss const& issue) -> TER { - if constexpr (std::is_same_v) - { - return removeEmptyHolding(ctx, accountID, issue, journal); - } - else - { - return removeEmptyHolding(ctx, accountID, issue, journal); - } + return removeEmptyHolding(ctx, accountID, issue, journal); }, asset.value()); }