Skip to content

Commit

Permalink
fix a potential panic when querying authenticator status (#395)
Browse files Browse the repository at this point in the history
  • Loading branch information
dyc3 committed Jul 17, 2024
1 parent 28c7a79 commit dd153a6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions steamguard/src/accountlinker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,7 @@ where
let mut req = CTwoFactor_Status_Request::new();
req.set_steamid(account.steam_id);

let resp = self
.client
.query_status(req, self.tokens.access_token())
.unwrap();
let resp = self.client.query_status(req, self.tokens.access_token())?;

Ok(resp.into_response_data())
}
Expand Down

0 comments on commit dd153a6

Please sign in to comment.