about summary refs log tree commit diff stats
path: root/src/command/cmd_ac.c
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-11-05 09:32:25 +0100
committerMichael Vetter <jubalh@iodoru.org>2020-11-05 09:32:25 +0100
commit70c8fd4657ffab8488e7a83bd2808f2dd6fbfbc8 (patch)
tree1c1206011c1c819c0b81bf78aaccba20e2996d21 /src/command/cmd_ac.c
parent36e0bfde46dc88c3988dfe513b9df8c18fd438a1 (diff)
downloadprofani-tty-70c8fd4657ffab8488e7a83bd2808f2dd6fbfbc8.tar.gz
Simplify _tray_autocomplete()
Diffstat (limited to 'src/command/cmd_ac.c')
-rw-r--r--src/command/cmd_ac.c6
1 files changed, 1 insertions, 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*