mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 13:15:09 -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;
|
||||
}
|
||||
|
||||
for (AutoPat *ap = au_get_autopat_for_event(event);
|
||||
ap != NULL;
|
||||
ap = ap->next) {
|
||||
if (ap == NULL || ap->cmds == NULL) {
|
||||
for (AutoPat *ap = au_get_autopat_for_event(event); ap != NULL; ap = ap->next) {
|
||||
if (ap->cmds == NULL) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user