mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-03 00:05:34 +00:00
small cleanup
This commit is contained in:
parent
0f802e4021
commit
1515fc2675
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user