From 8c419103b2e067c867f5a64c8fbcc942039ca7c9 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Mon, 18 Sep 2023 19:19:13 -0400 Subject: [PATCH] Fixing formatting. --- crates/api_crud/src/user/create.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/api_crud/src/user/create.rs b/crates/api_crud/src/user/create.rs index c56c1362d..e1efcbed2 100644 --- a/crates/api_crud/src/user/create.rs +++ b/crates/api_crud/src/user/create.rs @@ -92,7 +92,7 @@ pub async fn register( check_slurs_opt(&data.answer, &slur_regex)?; if sanitize_html_api(&data.username) != data.username { - Err(LemmyErrorType::InvalidName)?; + Err(LemmyErrorType::InvalidName)?; } let answer = sanitize_html_api_opt(&data.answer);