chore: code cleanup
This commit is contained in:
@@ -726,10 +726,7 @@ pub fn encrypt_string(string: String, entropy: String) -> String {
|
|||||||
let encrypted = encrypt_password(&string, &entropy);
|
let encrypted = encrypt_password(&string, &entropy);
|
||||||
|
|
||||||
match encrypted {
|
match encrypted {
|
||||||
Ok(encrypted_vec) => {
|
Ok(encrypted_vec) => encrypted_vec,
|
||||||
// encrypted_vec is already a String, not Vec<u8>
|
|
||||||
encrypted_vec
|
|
||||||
}
|
|
||||||
Err(_) => string,
|
Err(_) => string,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user