Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshidan committed Oct 10, 2023
1 parent 323d3bd commit e8cd53e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions foundation/metadata/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ async fn test_on_gce() -> Result<bool, Error> {
let url = format!("http://{METADATA_IP}");

let response = client.get(&url).send().await;
if response.is_ok() {
let response = response.unwrap();
if let Ok(response) = response {
if response.status().is_success() {
let on_gce = match response.headers().get(METADATA_FLAVOR_KEY) {
None => false,
Expand Down

0 comments on commit e8cd53e

Please sign in to comment.