Permalink
Fetching contributors…
Cannot retrieve contributors at this time
43 lines (32 sloc) 824 Bytes

RCS1211: Remove unnecessary else clause

Property Value
Id RCS1211
Category Redundancy
Default Severity Hidden
Enabled by Default
Supports Fade-Out -
Supports Fade-Out Analyzer -

Example

Code with Diagnostic

if (condition)
{
    return WhenTrue();
}
else // RCS1211
{
    return WhenFalse();
}

Code with Fix

if (condition)
{
    return WhenTrue();
}

return WhenFalse();

See Also

(Generated with DotMarkdown)