From 4c42a7e64c1c55fc420311db0bf01187339101c4 Mon Sep 17 00:00:00 2001 From: Stephen <11358399+nixuno@users.noreply.github.com> Date: Fri, 16 May 2025 08:01:37 -0400 Subject: [PATCH] Revert "Apply Copilot suggestions" This reverts commit 7d116773f9eb0faf876c21637ae45f58cd7e6064. --- src/api/core/ciphers.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/core/ciphers.rs b/src/api/core/ciphers.rs index 40c17965..73174bae 100644 --- a/src/api/core/ciphers.rs +++ b/src/api/core/ciphers.rs @@ -776,7 +776,7 @@ async fn post_bulk_collections( for cipher in &data.cipher_ids { let Some(cipher) = Cipher::find_by_uuid(cipher, &mut conn).await else { - err!(format!("Cipher '{}' doesn't exist", cipher)) + err!("Cipher doesn't exist") }; if !cipher.is_write_accessible_to_user(&headers.user.uuid, &mut conn).await { @@ -785,7 +785,7 @@ async fn post_bulk_collections( for collection in &data.collection_ids { match Collection::find_by_uuid_and_org(collection, &data.organization_id, &mut conn).await { - None => err!(format!("Invalid collection ID provided: {}", collection)), + None => err!("Invalid collection ID provided"), Some(collection) => { if collection.is_writable_by_user(&headers.user.uuid, &mut conn).await { if data.remove_collections {