summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-05-06 22:41:44 +0200
committerThomas Haller <thaller@redhat.com>2020-05-06 23:33:15 +0200
commitc8ded2d63bfed2d55b133f5476f6ddf76e920f5a (patch)
tree59e8013576f65bf48c124351f111986dd329c055
parent70b197aeb19f7e161cf36326157247215217fb56 (diff)
downloadNetworkManager-c8ded2d63bfed2d55b133f5476f6ddf76e920f5a.tar.gz
cli: avoid redundant "if" check that is always TRUE in nmcli_editor_tab_completion()
-rw-r--r--clients/cli/connections.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clients/cli/connections.c b/clients/cli/connections.c
index ec0b9200a7..65cc1e905e 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)) {