mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2024-12-22 22:45:12 +01:00
Don't clone() unused value
This commit is contained in:
parent
8b18c4c633
commit
f43d329e22
1 changed files with 2 additions and 2 deletions
|
@ -365,9 +365,9 @@ fn post_cipher_share(uuid: String, data: Json<ShareCipherData>, headers: Headers
|
|||
None => err!("Cipher doesn't exist")
|
||||
};
|
||||
|
||||
match data.cipher.organizationId.clone() {
|
||||
match data.cipher.organizationId {
|
||||
None => err!("Organization id not provided"),
|
||||
Some(org_id) => {
|
||||
Some(_) => {
|
||||
update_cipher_from_data(&mut cipher, data.cipher, &headers, true, &conn)?;
|
||||
for collection in data.collectionIds.iter() {
|
||||
match Collection::find_by_uuid(&collection, &conn) {
|
||||
|
|
Loading…
Reference in a new issue