Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 573 Bytes

RCS1061.md

File metadata and controls

35 lines (25 loc) · 573 Bytes

RCS1061: Merge if statement with nested if statement

Property Value
Id RCS1061
Category Simplification
Severity Hidden

Example

Code with Diagnostic

if (condition) // RCS1061
{
    if (condition2)
    {
    }
}

Code with Fix

if (condition && condition2)
{
}

See Also

(Generated with DotMarkdown)