Skip to content
Snippets Groups Projects
Commit 58a7c513 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

checksrc: detect "}else" uses as well

parent 450975b0
No related branches found
No related tags found
No related merge requests found
......@@ -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 "){"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment