Skip to content

Commit

Permalink
message->content null check removed
Browse files Browse the repository at this point in the history
  • Loading branch information
abobija committed Aug 15, 2022
1 parent 62dabde commit 606e04f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/discord/message.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ static discord_api_multipart_t* discord_message_create_multipart_from_attachment
}

esp_err_t discord_message_send(discord_handle_t client, discord_message_t* message, discord_message_t** out_result) {
if(! client || ! message || ! message->content || ! message->channel_id) {
if(! client || ! message || ! message->channel_id) {
DISCORD_LOGE("Invalid args");
return ESP_ERR_INVALID_ARG;
}
Expand Down

0 comments on commit 606e04f

Please sign in to comment.