Skip to content

Refactor if to conditional #26539

@jcouv

Description

@jcouv

Code that looks like if (b) { return x; } return y; can be refactored to return b ? x : y;

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions