Skip to content

Commit 07f6e2d

Browse files
committed
- Remove unnecessary check.
1 parent 4b226b5 commit 07f6e2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/systems/reaction/reactionsystem.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ function Reaction(rate, subs, prods, substoich, prodstoich;
1616
if isnothing(subs)
1717
subs = Vector{Operation}()
1818
(substoich!=nothing) && error("If substrates are nothing, substrate stiocihometries have to be so too.")
19-
substoich = (prodstoich == nothing) ? nothing : typeof(prodstoich)()
19+
substoich = typeof(prodstoich)()
2020
end
2121
if isnothing(prods)
2222
prods = Vector{Operation}()
2323
(prodstoich!=nothing) && error("If products are nothing, product stiocihometries have to be so too.")
24-
prodstoich = (substoich == nothing) ? nothing : typeof(substoich)()
24+
prodstoich = typeof(substoich)()
2525
end
2626
ns = isnothing(netstoich) ? get_netstoich(subs, prods, substoich, prodstoich) : netstoich
2727
Reaction(rate, subs, prods, substoich, prodstoich, ns, only_use_rate)

0 commit comments

Comments
 (0)