alx-tools / Betty

Holberton-style C code checker written in Perl
GNU General Public License v3.0
1.27k stars 1.76k forks source link

"else is not generally useful after a break or return" detection #12

Open Mattrack opened 8 years ago

Mattrack commented 8 years ago

"else is not generally useful after a break or return" is not raised when there is no braces after the "else":

if (1)
    return (1);
else if (2)
    return (2);
else
    return (0);
JohnnyOhms commented 2 years ago

nice