报告包含相同 thenelse 分支的条件表达式。

这样的表达式几乎肯定表明有错误。 该检查提供了一种折叠条件表达式的修复。

示例:


  int y = x == 10 ? 4 : 4;

在应用快速修复后:


  int y = 4;