small cleanup

This commit is contained in:
Luuk van Oijen 2023-11-24 09:43:13 +01:00 committed by GitHub
parent 0f802e4021
commit 1515fc2675
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,11 +49,11 @@ pub struct GeneralSettings {
impl GeneralSettings {
pub fn is_auth_key_valid(&self) -> bool {
return if let Some(auth_key) = &self.auth_key {
if let Some(auth_key) = &self.auth_key {
Uuid::parse_str(auth_key.as_str()).is_ok()
} else {
false
};
}
}
/// Returns the client resource path, and ensures it exists.