Fixing formatting.

This commit is contained in:
Dessalines 2023-09-18 19:19:13 -04:00
parent c05458adcd
commit 8c419103b2

View file

@ -92,7 +92,7 @@ pub async fn register(
check_slurs_opt(&data.answer, &slur_regex)?; check_slurs_opt(&data.answer, &slur_regex)?;
if sanitize_html_api(&data.username) != data.username { if sanitize_html_api(&data.username) != data.username {
Err(LemmyErrorType::InvalidName)?; Err(LemmyErrorType::InvalidName)?;
} }
let answer = sanitize_html_api_opt(&data.answer); let answer = sanitize_html_api_opt(&data.answer);