Catalyst.jl icon indicating copy to clipboard operation
Catalyst.jl copied to clipboard

Unrechable code in latexify code

Open TorkelE opened this issue 1 year ago • 1 comments

In this function:

function Latexify.infer_output(env, rs::ReactionSystem, args...)
    env in [:arrows, :chem, :chemical, :arrow] && return chemical_arrows

    error("The environment $env is not defined.")
    latex_function = Latexify.get_latex_function(rs, args...)

    return latex_function
end

The last two lines cannot be reached, as an error would be thrown before

TorkelE avatar Jul 07 '24 01:07 TorkelE