0
0
Fork 0
mirror of https://git.verdigado.com/NB-Public/simple-wkd.git synced 2024-10-30 01:05:53 +01:00

Fix issue when removing key

This commit is contained in:
Delta1925 2023-05-20 22:57:16 +02:00
parent 44d9147bc7
commit 47fe198598
No known key found for this signature in database
GPG key ID: 1C21ACE44193CB25

View file

@ -138,7 +138,7 @@ pub fn extract_domain(email: &str) -> Result<String> {
pub fn key_exists(email: &str) -> Result<bool> {
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)?
}