Skip to content

Commit

Permalink
checksrc: detect "}else" uses as well
Browse files Browse the repository at this point in the history
  • Loading branch information
bagder committed Sep 7, 2011
1 parent 450975b commit 58a7c51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/checksrc.pl
Expand Up @@ -145,7 +145,7 @@ sub scanfile {
}

# check for "} else"
if($l =~ /^(.*)\} else/) {
if($l =~ /^(.*)\} *else/) {
checkwarn($line, length($1), $file, $l, "else after closing brace on same line");
}
# check for "){"
Expand Down

0 comments on commit 58a7c51

Please sign in to comment.