File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
NDTensors/src/lib/SymmetrySectors/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 7777function arguments_product (s1, s2)
7878 isempty (s1) && return s2
7979 isempty (s2) && return s1
80- throw (ArgumentError (" Mixing non-empty storage types is illegal" ))
80+ return throw (ArgumentError (" Mixing non-empty storage types is illegal" ))
8181end
8282
8383arguments_isless (s1, s2) = isless (sym_arguments_insert_unspecified (s1, s2)... )
8484function arguments_isless (t:: Tuple , nt:: NamedTuple )
8585 isempty (nt) && return arguments_isless (t, ())
8686 isempty (t) && return arguments_isless ((;), nt)
87- throw (ArgumentError (" Mixing non-empty storage types is illegal" ))
87+ return throw (ArgumentError (" Mixing non-empty storage types is illegal" ))
8888end
8989function arguments_isless (nt:: NamedTuple , t:: Tuple )
9090 isempty (nt) && return arguments_isless ((), t)
9191 isempty (t) && return arguments_isless (nt, (;))
92- throw (ArgumentError (" Mixing non-empty storage types is illegal" ))
92+ return throw (ArgumentError (" Mixing non-empty storage types is illegal" ))
9393end
9494
9595# ================================= Cartesian Product ====================================
You can’t perform that action at this time.
0 commit comments