Skip to content

Commit

Permalink
remove an unnecessary unwrap
Browse files Browse the repository at this point in the history
  • Loading branch information
dyc3 committed Jul 3, 2024
1 parent dd6355c commit 2c02533
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 2c02533

Please sign in to comment.