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

add remove_if_then_else_expr #212

Closed
Stefanuk12 opened this issue Sep 7, 2024 · 1 comment
Closed

add remove_if_then_else_expr #212

Stefanuk12 opened this issue Sep 7, 2024 · 1 comment

Comments

@Stefanuk12
Copy link
Contributor

Stefanuk12 commented Sep 7, 2024

Similar to #202, a new rule called remove_if_then_else_expr would rewrite the following code from

local maxValue = if a > b then a else b

to

local maxValue
if a > b then
    maxValue = a
else
    maxValue = b
end

The official Luau syntax can be found here.

@Stefanuk12
Copy link
Contributor Author

Stefanuk12 commented Sep 7, 2024

Satisfied by #207 and #208, whoops.

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

No branches or pull requests

1 participant