Skip to content

Multiline if expression with trailing comment causes unnecessary expansion #375

@JohnnyMorganz

Description

@JohnnyMorganz
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions