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

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.