From 3e1afb139c80f32f2b187af4ca8ea04aa86cb977 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa?= Date: Wed, 12 Sep 2018 23:58:02 +0200 Subject: [PATCH] Remove unnecessary return --- src/api/core/accounts.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/core/accounts.rs b/src/api/core/accounts.rs index e8c4f7e..3e54577 100644 --- a/src/api/core/accounts.rs +++ b/src/api/core/accounts.rs @@ -288,7 +288,7 @@ fn password_hint(data: JsonUpcase, conn: DbConn) -> EmptyResul let data: PasswordHintData = data.into_inner().data; if !is_valid_email(&data.Email) { - return err!("This email address is not valid..."); + err!("This email address is not valid..."); } let user = User::find_by_mail(&data.Email, &conn);