mirror of
https://github.com/moparisthebest/curl
synced 2025-02-28 17:31:46 -05:00
checksrc: detect "}else" uses as well
This commit is contained in:
parent
450975b0c3
commit
58a7c51362
@ -145,7 +145,7 @@ sub scanfile {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# check for "} else"
|
# check for "} else"
|
||||||
if($l =~ /^(.*)\} else/) {
|
if($l =~ /^(.*)\} *else/) {
|
||||||
checkwarn($line, length($1), $file, $l, "else after closing brace on same line");
|
checkwarn($line, length($1), $file, $l, "else after closing brace on same line");
|
||||||
}
|
}
|
||||||
# check for "){"
|
# check for "){"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user