Skip to content
This repository has been archived by the owner on Jun 23, 2023. It is now read-only.

Commit

Permalink
Update utilities.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
tpoisot authored Nov 17, 2020
1 parent 7777c1b commit a8e3899
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/types/utilities.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a8e3899

Please sign in to comment.