Skip to content

[linter] identical_if_branch #60008

Open
Open
@stephane-archer

Description

@stephane-archer
int foo(int i)
{
    if (i ==42) { // useless if
        print(i);
       return i;
    }
    print(i);
    return i;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requestarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-linterIssues with the analyzer's support for the linter packagelinter-lint-proposaltype-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions