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

return-type-mismatch\missing-return doesn't have nil/optional support #1257

Closed
chadvandy opened this issue Jun 29, 2022 · 0 comments
Closed
Labels
bug Something isn't working

Comments

@chadvandy
Copy link

A pretty usecase is a conditional return that will sometimes return nothing at all, example below. But unless you put an explicit "return nil" at the very bottom, this is caught as an error, even when setting the return value as optional with ? or as optionally nil using |nil

image

@chadvandy chadvandy changed the title return-type-mismatch doesn't have nil/optional support return-type-mismatch\missing-return doesn't have nil/optional support Jun 29, 2022
@sumneko sumneko added the bug Something isn't working label Jun 30, 2022
@sumneko sumneko closed this as completed in 342ff9a Jul 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants