mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:8.2.2459: Coverity reports dead code (#23531)
Problem: Coverity reports dead code.
Solution: Remove the dead code.
8bead9a058
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
parent
e64db1d284
commit
ca344b715b
@ -3677,9 +3677,6 @@ static int eval_index_inner(typval_T *rettv, bool is_range, typval_T *var1, typv
|
||||
} else if (n2 >= len) {
|
||||
n2 = len;
|
||||
}
|
||||
if (exclusive) {
|
||||
n2--;
|
||||
}
|
||||
if (n1 >= len || n2 < 0 || n1 > n2) {
|
||||
v = NULL;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user