cli: avoid redundant "if" check that is always TRUE in nmcli_editor_tab_completion()

This commit is contained in:
Thomas Haller
2020-05-06 22:41:44 +02:00
parent 6f0dadabd7
commit b93e12cb43

View File

@@ -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)) {