Skip to content

fmt: fix if x := g() { x } else { return } adding newline after return (fix #24908)#24945

Merged
spytheman merged 2 commits into
vlang:masterfrom
spytheman:fix_24908_vfmt_of_if_return
Jul 22, 2025
Merged

fmt: fix if x := g() { x } else { return } adding newline after return (fix #24908)#24945
spytheman merged 2 commits into
vlang:masterfrom
spytheman:fix_24908_vfmt_of_if_return

Conversation

@spytheman

@spytheman spytheman commented Jul 22, 2025

Copy link
Copy Markdown
Contributor

@huly-for-github

Copy link
Copy Markdown

Connected to Huly®: V_0.6-23414

@spytheman spytheman changed the title fix 24908 vfmt of if return fmt: fix if x := g() { x } else { return } adding newline after return (fix #24908) Jul 22, 2025
@spytheman spytheman merged commit 4205697 into vlang:master Jul 22, 2025
76 checks passed
@spytheman spytheman deleted the fix_24908_vfmt_of_if_return branch July 22, 2025 08:46
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.

[v fmt tool] incorrect newline positioning of clause closing curly brace when second clause contains return

1 participant