mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 21:25:04 -07:00
refactor(PVS/V560): ap == NULL is always false
This commit is contained in:
parent
4b3f920477
commit
22d1b2423f
@ -131,10 +131,8 @@ Array nvim_get_autocmds(Dict(get_autocmds) *opts, Error *err)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (AutoPat *ap = au_get_autopat_for_event(event);
|
for (AutoPat *ap = au_get_autopat_for_event(event); ap != NULL; ap = ap->next) {
|
||||||
ap != NULL;
|
if (ap->cmds == NULL) {
|
||||||
ap = ap->next) {
|
|
||||||
if (ap == NULL || ap->cmds == NULL) {
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user