Skip to content

Commit 1ca47a2

Browse files
TorkelEisaacsas
andauthored
Update src/reactionsystem.jl
Co-authored-by: Sam Isaacson <[email protected]>
1 parent 0dea5e7 commit 1ca47a2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/reactionsystem.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -630,9 +630,8 @@ function ReactionSystem(eqs, iv, unknowns, ps;
630630
metadata = nothing)
631631

632632
# Error checks
633-
if name === nothing
633+
name === nothing &&
634634
throw(ArgumentError("The `name` keyword must be provided. Please consider using the `@named` macro"))
635-
end
636635
sysnames = nameof.(systems)
637636
(length(unique(sysnames)) == length(sysnames)) || throw(ArgumentError("System names must be unique."))
638637

0 commit comments

Comments
 (0)