mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-19 06:04:31 -04:00
Replace matches! with ==
This commit is contained in:
@@ -129,8 +129,7 @@ impl HttpClient {
|
||||
let access_token;
|
||||
|
||||
let request = if !self.request_config.assert_identity {
|
||||
let send_access_token = if matches!(auth_scheme, AuthScheme::None) && !config.force_auth
|
||||
{
|
||||
let send_access_token = if auth_scheme == AuthScheme::None && !config.force_auth {
|
||||
// Small optimization: Don't take the session lock if we know the auth token
|
||||
// isn't going to be used anyways.
|
||||
SendAccessToken::None
|
||||
|
||||
Reference in New Issue
Block a user