Skip to content

Allow ternary expressions spread over three lines #608

@0xEAB

Description

@0xEAB

I like ternary expressions that are split across three lines.

return (statusCode > 0)
	? Result.ok
	: Result.error;

Unfortunately, dfmt currently reformats such into a two-liner like this:

return (statusCode > 0)
	? Result.ok : Result.error;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions