Skip to content

Latest commit

 

History

History
75 lines (52 loc) · 839 Bytes

RCS1134.md

File metadata and controls

75 lines (52 loc) · 839 Bytes

RCS1134: Remove redundant statement

Property Value
Id RCS1134
Category Redundancy
Severity Hidden

Examples

Code with Diagnostic

if (x)
{
    // ...

    return false; // RCS1134
}

return false;

Code with Fix

if (x)
{
    // ...
}

return false;

Code with Diagnostic

public void Foo()
{
    // ...

    return; // RCS1134
}

Code with Fix

public void Foo()
{
    // ...
}

Code with Diagnostic

foreach (object item in items)
{
    /// ...

    continue; // RCS1134
}

See Also

(Generated with DotMarkdown)