Reports conditional expressions in which the condition is either a
true
or
false
constant. These expressions sometimes occur as a result of automatic refactorings and may be simplified.
Example:
return true ? "Yes" : "No";
After quick-fix is applied:
return "Yes";