mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 06:58:35 +00:00
PVS/V547: expression is always true/false #10640
Functions marked with FUNC_ATTR_NONNULL_RET do not return NULL. Remove redundant checks.
This commit is contained in:

committed by
Justin M. Keyes

parent
f5b5f60b86
commit
00d915d021
@@ -253,11 +253,7 @@ char_u * sign_typenr2name(int typenr)
|
||||
/// Return information about a sign in a Dict
|
||||
dict_T * sign_get_info(signlist_T *sign)
|
||||
{
|
||||
dict_T *d;
|
||||
|
||||
if ((d = tv_dict_alloc()) == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
dict_T *d = tv_dict_alloc();
|
||||
tv_dict_add_nr(d, S_LEN("id"), sign->id);
|
||||
tv_dict_add_str(d, S_LEN("group"), ((sign->group == NULL)
|
||||
? (char *)""
|
||||
|
Reference in New Issue
Block a user