From 47fe198598904900a3960e7b19da78e0414e34b2 Mon Sep 17 00:00:00 2001 From: Delta1925 Date: Sat, 20 May 2023 22:57:16 +0200 Subject: [PATCH] Fix issue when removing key --- backend/src/utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/utils.rs b/backend/src/utils.rs index 8b13d27..b4a9f80 100644 --- a/backend/src/utils.rs +++ b/backend/src/utils.rs @@ -138,7 +138,7 @@ pub fn extract_domain(email: &str) -> Result { pub fn key_exists(email: &str) -> Result { let path = email_to_file_path(email)?; - if !Path::new(&ROOT_FOLDER).join(path).is_file() { + if !path.is_file() { debug!("No key found for user {}", email); Err(SpecialErrors::InexistingUser)? }