Skip to content

Latest commit

 

History

History
70 lines (49 loc) · 694 Bytes

RCS1134.md

File metadata and controls

70 lines (49 loc) · 694 Bytes

RCS1134: Remove redundant statement

Property Value
Id RCS1134
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
}

(Generated with DotMarkdown)