mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
PVS/V560: expression is always true
This commit is contained in:
parent
cf4e14c746
commit
acdcae6b1e
@ -3006,7 +3006,6 @@ bool ins_compl_active(void)
|
||||
// Get complete information
|
||||
void get_complete_info(list_T *what_list, dict_T *retdict)
|
||||
{
|
||||
int ret = OK;
|
||||
#define CI_WHAT_MODE 0x01
|
||||
#define CI_WHAT_PUM_VISIBLE 0x02
|
||||
#define CI_WHAT_ITEMS 0x04
|
||||
@ -3038,7 +3037,8 @@ void get_complete_info(list_T *what_list, dict_T *retdict)
|
||||
}
|
||||
}
|
||||
|
||||
if (ret == OK && (what_flag & CI_WHAT_MODE)) {
|
||||
int ret = OK;
|
||||
if (what_flag & CI_WHAT_MODE) {
|
||||
ret = tv_dict_add_str(retdict, S_LEN("mode"),
|
||||
(char *)ins_compl_mode());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user