Skip to content

Commit

Permalink
Fix issue when removing key
Browse files Browse the repository at this point in the history
  • Loading branch information
Delta1925 committed May 20, 2023
1 parent 44d9147 commit 47fe198
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)?
}
Expand Down

0 comments on commit 47fe198

Please sign in to comment.