mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
css_parse_atrule: Drop an unnecessary check
We have a while loop that checks token && token->type != '}' followed by an if statement that checks token && token->type == }. If the while loop exits, that either token is false or token->type == '}'; therefore, the if statement need only check token.
This commit is contained in:
parent
60144e9ff6
commit
3ee39dae2b
@ -236,7 +236,7 @@ css_parse_atrule(struct css_stylesheet *css, struct scanner *scanner,
|
||||
css_parse_ruleset(css, scanner);
|
||||
token = get_scanner_token(scanner);
|
||||
}
|
||||
if (token && token->type == '}')
|
||||
if (token)
|
||||
skip_scanner_token(scanner);
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user