Skip to content

dartfmt should add braces if it splits a long if line #664

Closed
@jcollins-g

Description

@jcollins-g

@devoncarew
Tested on 2.0.0-dev.16.0.

If dartfmt sees a line like this:

    if (!identical(canonicalModelElement, this)) return canonicalModelElement?.href;

It will change it to:

   if (!identical(canonicalModelElement, this))
     return canonicalModelElement?.href;

I think it would be nice if this added braces.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions