Commit f78010cf authored by Rafaël Carré's avatar Rafaël Carré

ncurses: cosmetics

Remove braces around a single statement
Merge some comparisons
"( a )"             -> "(a)"
"if(x)"             -> "if (x)"
"if (x == NULL)"    -> "if (!x)"
"if (x != NULL)"    -> "if (x)"

ReadDir: Invert logic to have less indentation:
{
    if( a )
        x();
    else
        y();
}
====>
{
    if( !a )
    {
        y();
        return;
    }

    x();
}
parent 26e66361
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment