fix(coverity): 353827 unnecessary null check #19209

Previous checks make sure the index is not out of bounds. Therefore jmp
is never NULL.
This commit is contained in:
Javier Lopez
2022-07-02 11:24:58 -05:00
committed by GitHub
parent e11f3655fb
commit 108368bdd5

View File

@@ -280,7 +280,7 @@ fmark_T *get_jumplist(win_T *win, int count)
} }
break; break;
} }
return jmp != NULL ? &jmp->fmark : NULL; return &jmp->fmark;
} }
/// Get mark in "count" position in the |changelist| relative to the current index. /// Get mark in "count" position in the |changelist| relative to the current index.