about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-11-05 09:35:54 +0100
committerMichael Vetter <jubalh@iodoru.org>2020-11-05 09:35:54 +0100
commite9a946f75e0dfb4ca2a80cff268084bf0d0368c1 (patch)
tree6d4a3840555c86abc177756253e8c1ec1b88b88d /src
parent711ea4887fb97de8f6622fe19ec114e9be8fa8f9 (diff)
downloadprofani-tty-e9a946f75e0dfb4ca2a80cff268084bf0d0368c1.tar.gz
Simplify _correction_autocomplete()
Diffstat (limited to 'src')
-rw-r--r--src/command/cmd_ac.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/command/cmd_ac.c b/src/command/cmd_ac.c
index 6a5e11ad..6e22e90e 100644
--- a/src/command/cmd_ac.c
+++ b/src/command/cmd_ac.c
@@ -4031,11 +4031,8 @@ _correction_autocomplete(ProfWin* window, const char* const input, gboolean prev
     char* result = NULL;
 
     result = autocomplete_param_with_ac(input, "/correction", correction_ac, TRUE, previous);
-    if (result) {
-        return result;
-    }
 
-    return NULL;
+    return result;
 }
 
 static char*