Catalyst.jl
Catalyst.jl copied to clipboard
Unrechable code in latexify code
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
Either the last two lines should be removed, or there is something here which is not working as intended.