Permalink
Fetching contributors…
Cannot retrieve contributors at this time
51 lines (39 sloc) 911 Bytes

Split if-else

Property Value
Id RR0190
Title Split if-else
Syntax if statement
Span selected if statement or topmost if keyword
Enabled by Default

Usage

Before

if (condition1)
{
    return Foo1();
{
else if (condition2)
{
    return Foo2();
}
else
{
    return false;
}

After

if (condition1)
{
    return Foo1();
{

if (condition2)
{
    return Foo2();
}

return false;

See Also

(Generated with DotMarkdown)