chore(refactor): validate further up the code

This commit is contained in:
Paul Makles
2022-06-08 14:14:16 +01:00
parent 0abc12e5fa
commit 2051c8ce45
3 changed files with 5 additions and 9 deletions

View File

@@ -71,10 +71,6 @@ pub async fn req(
new_embeds.clear();
for embed in embeds {
embed
.validate()
.map_err(|error| Error::FailedValidation { error })?;
new_embeds.push(embed.clone().into_embed(db, message.id.clone()).await?);
}
}