From a8e389937496c682d9e3adab04f6358e0972ad3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Poisot?= Date: Mon, 16 Nov 2020 20:17:57 -0500 Subject: [PATCH] Update utilities.jl --- src/types/utilities.jl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/types/utilities.jl b/src/types/utilities.jl index cad1f33ef..c0cc2d625 100644 --- a/src/types/utilities.jl +++ b/src/types/utilities.jl @@ -4,8 +4,9 @@ function check_species_validity(::Type{T}) where {T <: Any} throw(ArgumentError("The type $(T) is not an allowed species type")) end -function check_species_validity(::Type{T}) where {T <: Union{Symbol,String}} -end +check_species_validity(::Type{T}) where {T <: Symbol} = nothing +check_species_validity(::Type{T}) where {T <: AbstractString} = nothing +check_species_validity(::Type{T}) where {T <: String} = nothing """ show(io::IO, N::AbstractEcologicalNetwork)