mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-06-08 03:53:57 +00:00
Use if let instead of a match with empty block.
This commit is contained in:
parent
84bcac0112
commit
bf623eed7f
2 changed files with 4 additions and 6 deletions
|
@ -999,9 +999,8 @@ async fn save_attachment(
|
|||
attachment.save(&conn).await.expect("Error saving attachment");
|
||||
}
|
||||
|
||||
match data.data.persist_to(&file_path).await {
|
||||
Ok(_result) => {}
|
||||
Err(_error) => data.data.move_copy_to(&file_path).await?,
|
||||
if let Err(_err) = data.data.persist_to(&file_path).await {
|
||||
data.data.move_copy_to(file_path).await?
|
||||
}
|
||||
|
||||
nt.send_cipher_update(UpdateType::CipherUpdate, &cipher, &cipher.update_users_revision(&conn).await).await;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue