Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
exaexa committed Dec 11, 2023
1 parent b37c4f5 commit 25af259
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/writesbml.jl
Original file line number Diff line number Diff line change
Expand Up @@ -567,8 +567,8 @@ function _create_doc(mdl::Model)::VPtr
fbc_required =
!isempty(mdl.objectives) ||
!isempty(mdl.gene_products) ||
any(!isnothing, (sp.formula for (_, sp) in mdl.species)) ||
any(!isnothing, (sp.charge for (_, sp) in mdl.species))
any(!isnothing(sp.formula) for (_, sp) in mdl.species) ||
any(!isnothing(sp.charge) for (_, sp) in mdl.species)

groups_required = !isempty(mdl.groups)

Expand Down

0 comments on commit 25af259

Please sign in to comment.