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