about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorWill Song <incertia9474@gmail.com>2015-11-24 18:15:35 -0600
committerWill Song <incertia9474@gmail.com>2015-11-24 18:15:35 -0600
commitd8022a9f208c238d9f2bdca5ebad1604683f4273 (patch)
tree894753d929d4c747973667b2963935017cb16870
parentbd33a24bebde076ab760d7a34c9a415b0d9cd7b6 (diff)
downloadprofani-tty-d8022a9f208c238d9f2bdca5ebad1604683f4273.tar.gz
remove NULL check because parse_args will fail before calling cmd_export
-rw-r--r--src/command/commands.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/command/commands.c b/src/command/commands.c
index 5e7e0951..286b0afe 100644
--- a/src/command/commands.c
+++ b/src/command/commands.c
@@ -827,7 +827,7 @@ cmd_export(ProfWin *window, const char *const command, gchar **args)
         cons_show("You are not currently connected.");
         cons_show("");
         return TRUE;
-    } else if(args[0]) {
+    } else {
         GString *fname = g_string_new("");
         GSList *list = NULL;
         int fd;
@@ -885,8 +885,6 @@ write_error:
         g_slist_free(list);
         close(fd);
         return TRUE;
-    } else {
-        return FALSE;
     }
 }