Spiegel von
https://github.com/dani-garcia/vaultwarden.git
synchronisiert 2024-11-26 05:50:29 +01:00
Don't clone() unused value
Dieser Commit ist enthalten in:
Ursprung
8b18c4c633
Commit
f43d329e22
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
|
@ -365,9 +365,9 @@ fn post_cipher_share(uuid: String, data: Json<ShareCipherData>, headers: Headers
|
||||||
None => err!("Cipher doesn't exist")
|
None => err!("Cipher doesn't exist")
|
||||||
};
|
};
|
||||||
|
|
||||||
match data.cipher.organizationId.clone() {
|
match data.cipher.organizationId {
|
||||||
None => err!("Organization id not provided"),
|
None => err!("Organization id not provided"),
|
||||||
Some(org_id) => {
|
Some(_) => {
|
||||||
update_cipher_from_data(&mut cipher, data.cipher, &headers, true, &conn)?;
|
update_cipher_from_data(&mut cipher, data.cipher, &headers, true, &conn)?;
|
||||||
for collection in data.collectionIds.iter() {
|
for collection in data.collectionIds.iter() {
|
||||||
match Collection::find_by_uuid(&collection, &conn) {
|
match Collection::find_by_uuid(&collection, &conn) {
|
||||||
|
|
Laden …
In neuem Issue referenzieren