diff options
Diffstat (limited to 'azalea-auth/src')
| -rw-r--r-- | azalea-auth/src/auth.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/azalea-auth/src/auth.rs b/azalea-auth/src/auth.rs index 3e5f82d8..0d7c7ace 100644 --- a/azalea-auth/src/auth.rs +++ b/azalea-auth/src/auth.rs @@ -56,11 +56,7 @@ pub enum AuthError { /// though, and in case the Microsoft API does start providing the real email. pub async fn auth(email: &str, opts: AuthOpts) -> Result<AuthResult, AuthError> { let cached_account = if let Some(cache_file) = &opts.cache_file { - if let Some(account) = cache::get_account_in_cache(cache_file, email).await { - Some(account) - } else { - None - } + cache::get_account_in_cache(cache_file, email).await } else { None }; |
