From b93e12cb43b6401ac3a891fe8841f08eddbf6b1d Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 6 May 2020 22:41:44 +0200 Subject: [PATCH] cli: avoid redundant "if" check that is always TRUE in nmcli_editor_tab_completion() --- clients/cli/connections.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/cli/connections.c b/clients/cli/connections.c index ec0b9200a..65cc1e905 100644 --- a/clients/cli/connections.c +++ b/clients/cli/connections.c @@ -6282,7 +6282,7 @@ nmcli_editor_tab_completion (const char *text, int start, int end) rl_completion_append_character = '.'; } else generator_func = gen_property_names; - } else if (num >= 3) { + } else { if (num == 3 && should_complete_files (NULL, line)) rl_attempted_completion_over = 0; else if (should_complete_vpn_uuids (NULL, line)) {