mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:9.0.1137: some conditions are always false (#21628)
Problem: Some conditions are always false.
Solution: Remove the useless conditions. (closes vim/vim#11776)
ea720aea85
This commit is contained in:
parent
5841a97500
commit
a3c92f6b6c
@ -1654,7 +1654,7 @@ static void setwinvar(typval_T *argvars, typval_T *rettv, int off)
|
|||||||
const char *varname = tv_get_string_chk(&argvars[off + 1]);
|
const char *varname = tv_get_string_chk(&argvars[off + 1]);
|
||||||
typval_T *varp = &argvars[off + 2];
|
typval_T *varp = &argvars[off + 2];
|
||||||
|
|
||||||
if (win == NULL || varname == NULL || varp == NULL) {
|
if (win == NULL || varname == NULL) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user