fix a potential panic when querying authenticator status (#395)

This commit is contained in:
Carson McManus 2024-07-16 20:13:39 -04:00 committed by GitHub
parent 28c7a797cf
commit dd153a617c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -137,10 +137,7 @@ where
let mut req = CTwoFactor_Status_Request::new(); let mut req = CTwoFactor_Status_Request::new();
req.set_steamid(account.steam_id); req.set_steamid(account.steam_id);
let resp = self let resp = self.client.query_status(req, self.tokens.access_token())?;
.client
.query_status(req, self.tokens.access_token())
.unwrap();
Ok(resp.into_response_data()) Ok(resp.into_response_data())
} }