about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 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*