Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unrechable code in latexify code #972

Closed
TorkelE opened this issue Jul 7, 2024 · 1 comment · Fixed by #1040
Closed

Unrechable code in latexify code #972

TorkelE opened this issue Jul 7, 2024 · 1 comment · Fixed by #1040
Labels

Comments

@TorkelE
Copy link
Member

TorkelE commented Jul 7, 2024

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 TorkelE added the bug label Jul 7, 2024
@TorkelE
Copy link
Member Author

TorkelE commented Jul 7, 2024

Either the last two lines should be removed, or there is something here which is not working as intended.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant