@smbcloud / cli / commits / 3ecba91

fmt

Seto Elkahfi committed Sep 3, 2023 at 19:01 UTC 3ecba91fa5740f93fc65cf730f62f921b9c3b145
1 file changed +3 -7
smbpndk-cli/src/account/login/process.rs
+3 -7
@@ -293,12 +293,8 @@ async fn verify_or_set_password(result: SmbAuthorization) -> Result<CommandResul
293 Some(error_code) => {
294 debug!("{}", error_code);
295 match error_code {
296 - ErrorCode::EmailUnverified => {
297 - return send_email_verification(result.user).await
298 - }
299 - ErrorCode::PasswordNotSet => {
300 - return send_reset_password(result.user).await
301 - }
296 + ErrorCode::EmailUnverified => return send_email_verification(result.user).await,
297 + ErrorCode::PasswordNotSet => return send_reset_password(result.user).await,
298 _ => {
299 let error = anyhow!("Shouldn't be here.");
300 return Err(error);
@@ -308,7 +304,7 @@ async fn verify_or_set_password(result: SmbAuthorization) -> Result<CommandResul
304 None => {
305 let error = anyhow!("Shouldn't be here.");
306 return Err(error);
311 - }
307 + }
308 }
309 }
310