Remove superfluous status check
@@ -78,8 +78,6 @@ impl TokenProvider {
);
let request = self.session().mercury().get(query_uri);
let response = request.await?;
-
- if response.status_code == 200 {
let data = response
.payload
.first()
@@ -89,9 +87,6 @@ impl TokenProvider {
trace!("Got token: {:?}", token);
self.lock(|inner| inner.tokens.push(token.clone()));
Ok(token)
- } else {
- Err(MercuryError)
- }
}
}
