TypeName | RemoveRedundantElseClauseAnalyzer |
Check Id | CC0089 |
Category | Usage |
Severity | Info |
Certain if-else conditions can safely have their else clause removed.
if (true)
{
//some statement (not a comment)
}
else
{
}
A code fix will be presented to you that will transform the code, it will remove completely the else statement if there’s no significant(not commented) code inside it.
if (true)
{
//some statement (not a comment)
}
TBD