From dddc609859c3e6e72f091dc25f996e2ca0084c0d Mon Sep 17 00:00:00 2001 From: Peter Kalauskas Date: Sun, 19 Nov 2017 11:19:41 -0800 Subject: menu.c: remove conditional expression that is always true --- src/nvim/menu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/nvim/menu.c b/src/nvim/menu.c index 88d968704b..2876ba82a7 100644 --- a/src/nvim/menu.c +++ b/src/nvim/menu.c @@ -1417,7 +1417,8 @@ void ex_emenu(exarg_T *eap) idx = MENU_INDEX_NORMAL; } - if (idx != MENU_INDEX_INVALID && menu->strings[idx] != NULL) { + assert(idx != MENU_INDEX_INVALID); + if (menu->strings[idx] != NULL) { /* When executing a script or function execute the commands right now. * Otherwise put them in the typeahead buffer. */ if (current_SID != 0) -- cgit