-
Notifications
You must be signed in to change notification settings - Fork 638
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
Incorrect removal of return keyword within for-loop #1960
Labels
Comments
This looks like a bug - it's treating the for loop as an expression maybe? But that's only valid for if/switch and only in certain places. |
@Shiaulis I've not been able to reproduce this with the code sample you provided. Can you provide a standalone code snippet that reproduces the issue? Also if you are using a custom config that may be relevant. |
this is the whole function:
This is our contig:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey 👋🏾
For some reason latest version of swiftformat started suggesting this change. Can you help to understand why? Or is it a bug?
The text was updated successfully, but these errors were encountered: