From 70c8fd4657ffab8488e7a83bd2808f2dd6fbfbc8 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Thu, 5 Nov 2020 09:32:25 +0100 Subject: [PATCH] Simplify _tray_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 b90a2d0e..50bc924e 100644 --- a/src/command/cmd_ac.c +++ b/src/command/cmd_ac.c @@ -1840,11 +1840,7 @@ _tray_autocomplete(ProfWin* window, const char* const input, gboolean previous) } result = autocomplete_param_with_ac(input, "/tray", tray_ac, FALSE, previous); - if (result) { - return result; - } - - return NULL; + return result; } static char*