Merge pull request #17226 from dundargoc/refactor/remove-redundant-code

vim-patch:8.2.4241: some type casts are redundant
This commit is contained in:
zeertzjq
2022-02-03 20:47:29 +08:00
committed by GitHub
16 changed files with 46 additions and 58 deletions

View File

@@ -311,7 +311,7 @@ static char_u *get_healthcheck_names(expand_T *xp, int idx)
healthchecks.last_gen = last_prompt_id;
}
return idx <
(int)healthchecks.names.ga_len ? ((char_u **)(healthchecks.names.ga_data))[idx] : NULL;
healthchecks.names.ga_len ? ((char_u **)(healthchecks.names.ga_data))[idx] : NULL;
}
/// Transform healthcheck file path into it's name.