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

AST::ImplicitReturnVisitor implicit return fixes for Crystal::ExceptionHandler #549

Conversation

nobodywasishere
Copy link
Contributor

Last line of ensure isn't returned and last line of body isn't returned if there's an else.

Last line of `ensure` isn't returned, and
last line of body isn't returned if there's an `else`
@Sija Sija requested a review from veelenga January 25, 2025 19:54
Copy link
Member

@veelenga veelenga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch 👏🏻

@Sija Sija merged commit e61f56f into crystal-ameba:master Jan 26, 2025
3 of 4 checks passed
@Sija Sija added this to the 1.7.0 milestone Jan 26, 2025
@Sija Sija changed the title ExceptionHandler implicit return fixes AST:: ImplicitReturnVisitor implicit return fixes for Crystal::ExceptionHandler Jan 26, 2025
@Sija Sija changed the title AST:: ImplicitReturnVisitor implicit return fixes for Crystal::ExceptionHandler AST::ImplicitReturnVisitor implicit return fixes for Crystal::ExceptionHandler Jan 26, 2025
@nobodywasishere nobodywasishere deleted the nobody/no-implicit-return-for-ensure branch January 29, 2025 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants