Skip to content

ternary hints do not apply to conditions without brackets #43

@markiewb

Description

@markiewb
         String a = null,b = null;
        String var1 = (a != null) ? a: b;//can be converted
        String var2 = a != null ? a: b;//ternary hints do not match here

Affected hints

  • To if/else
  • Invert ternary

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions