Skip to content

Commit

Permalink
(rebase) : Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
protocolito committed Aug 28, 2023
1 parent a27b18e commit f05c3fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions validator_client/src/http_api/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1237,22 +1237,22 @@ pub async fn convert_with_header<T: Serialize>(
let mut res = Response::new(hyper::Body::from(body));
res.headers_mut()
.insert(CONTENT_TYPE, HeaderValue::from_static("application/json"));
return res; // Explicitly return here
res
}
Err(_) => {
let error = Response::builder()
.status(StatusCode::INTERNAL_SERVER_ERROR)
.body(hyper::Body::from(vec![]))
.expect("can produce simple response from static values");
return error; // Explicitly return here
error
}
},
Err(_) => {
let error = Response::builder()
.status(StatusCode::INTERNAL_SERVER_ERROR)
.body(hyper::Body::from(vec![]))
.expect("can produce simple response from static values");
return error; // Explicitly return here
error
}
}
}
Expand Down

0 comments on commit f05c3fb

Please sign in to comment.