Skip to content

Remove redundant else #355

@gandarez

Description

@gandarez

When else statement is empty it might raise a diagnostic.

Before:

if (true)
{
    //some statement (not a comment)
}
else
{
}

After:

if (true)
{
    //some statement (not a comment)
}

Diagnostic id: CC0089
Category: Usage
Severity: Info

@gandarez is working on it.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions