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

Multiline if expression with trailing comment causes unnecessary expansion #375

Closed
JohnnyMorganz opened this issue Feb 17, 2022 · 0 comments · Fixed by #376
Closed

Multiline if expression with trailing comment causes unnecessary expansion #375

JohnnyMorganz opened this issue Feb 17, 2022 · 0 comments · Fixed by #376
Labels
bug Something isn't working

Comments

@JohnnyMorganz
Copy link
Owner

local x = if true
	then foo -- comment
	else nil

... gets turned into ...

local x = if true
	then
		foo -- comment
	else nil

which is unnecessarily expanding the then expression. It can remain on one line

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

Successfully merging a pull request may close this issue.

1 participant