From 24420096fd313d0912014f123c6f824dfa67b53c Mon Sep 17 00:00:00 2001 From: StNicolay Date: Fri, 23 Jun 2023 12:36:55 +0300 Subject: [PATCH] Removed excesive validity checks --- src/commands/import.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/commands/import.rs b/src/commands/import.rs index e386f63..a85a68d 100644 --- a/src/commands/import.rs +++ b/src/commands/import.rs @@ -22,10 +22,6 @@ async fn encrypt_account( master_pass: Arc, failed: &Mutex<&mut Vec>, ) { - if !account.validate() { - failed.lock().push(account.name); - return; - } let name = account.name.clone(); match spawn_blocking(move || account.into_account(user_id, &master_pass)).await { Ok(Ok(account)) => match account.insert(db).await {