Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
ogauthe committed Oct 24, 2024
1 parent 65453b6 commit c41c2fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions NDTensors/src/lib/SymmetrySectors/src/sector_product.jl
Original file line number Diff line number Diff line change
Expand Up @@ -77,19 +77,19 @@ end
function arguments_product(s1, s2)
isempty(s1) && return s2
isempty(s2) && return s1
throw(ArgumentError("Mixing non-empty storage types is illegal"))
return throw(ArgumentError("Mixing non-empty storage types is illegal"))
end

arguments_isless(s1, s2) = isless(sym_arguments_insert_unspecified(s1, s2)...)
function arguments_isless(t::Tuple, nt::NamedTuple)
isempty(nt) && return arguments_isless(t, ())
isempty(t) && return arguments_isless((;), nt)
throw(ArgumentError("Mixing non-empty storage types is illegal"))
return throw(ArgumentError("Mixing non-empty storage types is illegal"))
end
function arguments_isless(nt::NamedTuple, t::Tuple)
isempty(nt) && return arguments_isless((), t)
isempty(t) && return arguments_isless(nt, (;))
throw(ArgumentError("Mixing non-empty storage types is illegal"))
return throw(ArgumentError("Mixing non-empty storage types is illegal"))
end

# ================================= Cartesian Product ====================================
Expand Down

0 comments on commit c41c2fe

Please sign in to comment.