mirror of
https://git.verdigado.com/NB-Public/simple-wkd.git
synced 2024-10-30 03:25:54 +01:00
Fix issue when removing key
This commit is contained in:
parent
44d9147bc7
commit
47fe198598
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ pub fn extract_domain(email: &str) -> Result<String> {
|
||||||
|
|
||||||
pub fn key_exists(email: &str) -> Result<bool> {
|
pub fn key_exists(email: &str) -> Result<bool> {
|
||||||
let path = email_to_file_path(email)?;
|
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);
|
debug!("No key found for user {}", email);
|
||||||
Err(SpecialErrors::InexistingUser)?
|
Err(SpecialErrors::InexistingUser)?
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue