From 711ea4887fb97de8f6622fe19ec114e9be8fa8f9 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Thu, 5 Nov 2020 09:35:19 +0100 Subject: Simplify _executable_autocomplete() --- src/command/cmd_ac.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src') diff --git a/src/command/cmd_ac.c b/src/command/cmd_ac.c index 31156e15..6a5e11ad 100644 --- a/src/command/cmd_ac.c +++ b/src/command/cmd_ac.c @@ -4135,11 +4135,8 @@ _executable_autocomplete(ProfWin* window, const char* const input, gboolean prev char* result = NULL; result = autocomplete_param_with_ac(input, "/executable", executable_ac, TRUE, previous); - if (result) { - return result; - } - return NULL; + return result; } static char* -- cgit 1.4.1-2-gfad0