Removed excesive validity checks

This commit is contained in:
StNicolay 2023-06-23 12:36:55 +03:00
parent 497e0ba5bf
commit 24420096fd
Signed by: StNicolay
GPG Key ID: 9693D04DCD962B0D

View File

@ -22,10 +22,6 @@ async fn encrypt_account(
master_pass: Arc<str>, master_pass: Arc<str>,
failed: &Mutex<&mut Vec<String>>, failed: &Mutex<&mut Vec<String>>,
) { ) {
if !account.validate() {
failed.lock().push(account.name);
return;
}
let name = account.name.clone(); let name = account.name.clone();
match spawn_blocking(move || account.into_account(user_id, &master_pass)).await { match spawn_blocking(move || account.into_account(user_id, &master_pass)).await {
Ok(Ok(account)) => match account.insert(db).await { Ok(Ok(account)) => match account.insert(db).await {