diff --git a/NDTensors/src/lib/SymmetrySectors/src/sector_product.jl b/NDTensors/src/lib/SymmetrySectors/src/sector_product.jl index 66bd11e759..e769012432 100644 --- a/NDTensors/src/lib/SymmetrySectors/src/sector_product.jl +++ b/NDTensors/src/lib/SymmetrySectors/src/sector_product.jl @@ -73,11 +73,8 @@ end # get clean results when mixing implementations arguments_isequal(nt::NamedTuple, t::Tuple) = arguments_isequal(t, nt) function arguments_isequal(t::Tuple, nt::NamedTuple) - if isempty(t) - return arguments_isequal((;), nt) - elseif isempty(nt) - return arguments_isequal(t, ()) - end + isempty(t) && return arguments_isequal((;), nt) + isempty(nt) && return arguments_isequal(t, ()) return false end