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:
zeertzjq 2023-01-03 19:22:32 +08:00 committed by GitHub
parent 5841a97500
commit a3c92f6b6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}