Skip to content

Commit

Permalink
simpler error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
colinleroy committed Jan 29, 2025
1 parent 1db4af3 commit cb59d42
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/mastodon/cli/compose.c
Original file line number Diff line number Diff line change
Expand Up @@ -477,8 +477,7 @@ static char *handle_compose_input(char *initial_buf) {
setup_gui();
if (IS_NULL(dget_text_multi(text, NUM_CHARS, dgt_cmd_cb, 1))) {
free(text);
text = NULL;
goto out;
return NULL;
}
if (should_open_menu == 'i') {
should_open_menu = 0;
Expand All @@ -499,7 +498,7 @@ static char *handle_compose_input(char *initial_buf) {
should_resume_composing = 0;
goto resume_composing;
}
out:

return text;
}

Expand Down

0 comments on commit cb59d42

Please sign in to comment.