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

refactor: avoid duplicated exitFunctions map #1145

Merged
merged 1 commit into from
Nov 28, 2024

Conversation

alexandear
Copy link
Contributor

The map exitFunctions is duplicated in rule/deep_exit.go and rule/unconditional_recursion.go, so I moved this var to rule/utils.go. Additionally, I extracted isCallToExitFunction to a separate function.

@alexandear alexandear force-pushed the refactor/exit-functions branch from a5ab5c8 to 9156e52 Compare November 25, 2024 20:00
@alexandear alexandear force-pushed the refactor/exit-functions branch from 9156e52 to 1faf3bd Compare November 25, 2024 20:02
@chavacava chavacava merged commit 777abc9 into mgechev:master Nov 28, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants