Skip to content

Commit afb89f0

Browse files
TorkelEisaacsas
andauthored
Update src/reaction_network.jl
Co-authored-by: Sam Isaacson <[email protected]>
1 parent 9f4a8fc commit afb89f0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/reaction_network.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -656,8 +656,7 @@ function push_reactions!(reactions::Vector{ReactionStruct}, sub_line::ExprValues
656656
end
657657

658658
# Checks that metadata fields are unqiue.
659-
metadata_entries = [arg.args[1] for arg in metadata_i.args]
660-
if length(unique(metadata_entries)) < length(metadata_entries)
659+
if !allunique(arg.args[1] for arg in metadata_i.args)
661660
error("Some reaction metadata fields where repeated: $(metadata_entries)")
662661
end
663662

0 commit comments

Comments
 (0)