mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00: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:
@@ -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]);
|
||||
typval_T *varp = &argvars[off + 2];
|
||||
|
||||
if (win == NULL || varname == NULL || varp == NULL) {
|
||||
if (win == NULL || varname == NULL) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user