remove NULL check because parse_args will fail before calling cmd_export

This commit is contained in:
Will Song
2015-11-24 18:15:35 -06:00
parent bd33a24beb
commit d8022a9f20

View File

@@ -827,7 +827,7 @@ cmd_export(ProfWin *window, const char *const command, gchar **args)
cons_show("You are not currently connected."); cons_show("You are not currently connected.");
cons_show(""); cons_show("");
return TRUE; return TRUE;
} else if(args[0]) { } else {
GString *fname = g_string_new(""); GString *fname = g_string_new("");
GSList *list = NULL; GSList *list = NULL;
int fd; int fd;
@@ -885,8 +885,6 @@ write_error:
g_slist_free(list); g_slist_free(list);
close(fd); close(fd);
return TRUE; return TRUE;
} else {
return FALSE;
} }
} }