Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 574 Bytes

RCS1049.md

File metadata and controls

44 lines (30 loc) · 574 Bytes

RCS1049: Simplify boolean comparison

Property Value
Id RCS1049
Category Simplification
Severity Info

Example

Code with Diagnostic

bool f = false;

// ...

if (f == false) // RCS1049
{
}

if (f != true) // RCS1049
{
}

Code with Fix

if (!f)
{
}

if (!f)
{
}

See Also

(Generated with DotMarkdown)