From 48eb7edee10dbaf2e2f4388fe5f5d374b8fdc45f Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Sun, 30 Jul 2023 05:17:26 +0100 Subject: [PATCH] fmt: fix error in formatting --- src/methods/account_new.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/methods/account_new.rs b/src/methods/account_new.rs index 3125784..85e26fd 100644 --- a/src/methods/account_new.rs +++ b/src/methods/account_new.rs @@ -37,7 +37,6 @@ pub async fn post_new_account(mut req: Request) -> tide::Result { }; if let Some(error) = is_valid_name(&user) { - return Ok(json!({"result": "error", "error": error}).into()); }