Skip to content

Fixing EmptyBlock recipe not to alter code for unsupported operators #478

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

Merged
merged 1 commit into from
Mar 13, 2025

Conversation

greg-at-moderne
Copy link
Contributor

What's changed?

Fixing EmptyBlock recipe not to corrupt the code.

What's your motivation?

@greg-at-moderne greg-at-moderne self-assigned this Mar 13, 2025
@github-project-automation github-project-automation bot moved this to In Progress in OpenRewrite Mar 13, 2025
@greg-at-moderne greg-at-moderne changed the title Fixing default case in EmptyBlockVisitor Fixing EmptyBlock recipe not to alter code for unsupported operators Mar 13, 2025
@greg-at-moderne greg-at-moderne merged commit bea56f0 into main Mar 13, 2025
2 checks passed
@greg-at-moderne greg-at-moderne deleted the greg-EmptyBlock-only-some-operators branch March 13, 2025 07:15
@github-project-automation github-project-automation bot moved this from In Progress to Done in OpenRewrite Mar 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

EmptyBlock removes } else { when the if block was empty, breaking the logic
1 participant