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)? }