Skip to content

Issue with autobracing when {{ }} is the body of an if statement #410

@lbm364dl

Description

@lbm364dl

Inside a function I can have this:

if (an_expression) {{ var }} else another_expression

Running air format gives this:

if (an_expression) {{ var }} else {
  another_expression
}

Is this intended? I guess the fact that the embracing operator and block expressions share curly braces might have something to do with this result, so I thought it might be a bug?

Of course if the line is short enough, I would expect air format to do nothing in this example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions