From c41c2fe1a69f8fa23595a997994517c8203907d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Gauth=C3=A9?= Date: Thu, 24 Oct 2024 12:52:39 -0400 Subject: [PATCH] style --- NDTensors/src/lib/SymmetrySectors/src/sector_product.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/NDTensors/src/lib/SymmetrySectors/src/sector_product.jl b/NDTensors/src/lib/SymmetrySectors/src/sector_product.jl index a98f9596e7..205041a195 100644 --- a/NDTensors/src/lib/SymmetrySectors/src/sector_product.jl +++ b/NDTensors/src/lib/SymmetrySectors/src/sector_product.jl @@ -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 ====================================