From 36e0bfde46dc88c3988dfe513b9df8c18fd438a1 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Thu, 5 Nov 2020 09:31:59 +0100 Subject: [PATCH] Simplify _sub_autocomplete() --- src/command/cmd_ac.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/command/cmd_ac.c b/src/command/cmd_ac.c index 0cc2257b..b90a2d0e 100644 --- a/src/command/cmd_ac.c +++ b/src/command/cmd_ac.c @@ -1827,11 +1827,7 @@ _sub_autocomplete(ProfWin* window, const char* const input, gboolean previous) return result; } result = autocomplete_param_with_ac(input, "/sub", sub_ac, TRUE, previous); - if (result) { - return result; - } - - return NULL; + return result; } static char*