From dd153a617cc23dda5a4d176ec894e8a054273347 Mon Sep 17 00:00:00 2001 From: Carson McManus Date: Tue, 16 Jul 2024 20:13:39 -0400 Subject: [PATCH] fix a potential panic when querying authenticator status (#395) --- steamguard/src/accountlinker.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/steamguard/src/accountlinker.rs b/steamguard/src/accountlinker.rs index 7511a33..de4f548 100644 --- a/steamguard/src/accountlinker.rs +++ b/steamguard/src/accountlinker.rs @@ -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()) }