Skip to content

Commit dcefd62

Browse files
committed
revert if statement
1 parent 2187e2f commit dcefd62

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/reactionsystem.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -692,10 +692,10 @@ function ReactionSystem(eqs, iv, unknowns, ps;
692692
MT.collect_var_to_name!(var_to_name, eq.lhs for eq in observed)
693693

694694
# Computes network properties.
695-
if networkproperties === nothing
696-
nps = NetworkProperties{Int, get_speciestype(iv′, unknowns′, systems)}()
695+
nps = if networkproperties === nothing
696+
NetworkProperties{Int, get_speciestype(iv′, unknowns′, systems)}()
697697
else
698-
nps = networkproperties
698+
networkproperties
699699
end
700700

701701
# Creates the continious and discrete callbacks.

0 commit comments

Comments
 (0)