From 9d2599dd2fc683a20a3a4296164bb2f5b9bcb99e Mon Sep 17 00:00:00 2001 From: HorizonCode Date: Wed, 16 Jul 2025 22:01:41 +0200 Subject: [PATCH] chore: code cleanup --- src-tauri/src/commands.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src-tauri/src/commands.rs b/src-tauri/src/commands.rs index ae3d4d4..e9423a6 100644 --- a/src-tauri/src/commands.rs +++ b/src-tauri/src/commands.rs @@ -726,10 +726,7 @@ pub fn encrypt_string(string: String, entropy: String) -> String { let encrypted = encrypt_password(&string, &entropy); match encrypted { - Ok(encrypted_vec) => { - // encrypted_vec is already a String, not Vec - encrypted_vec - } + Ok(encrypted_vec) => encrypted_vec, Err(_) => string, } }