We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a57cb6f commit 54b9a5dCopy full SHA for 54b9a5d
common/src/indexer_service/http/health.rs
@@ -106,12 +106,12 @@ pub async fn health(
106
107
match response_json {
108
Ok(res) => {
109
- if res.data.indexingStatuses.len() == 0 {
+ if res.data.indexingStatuses.is_empty() {
110
return Err(CheckHealthError::DeploymentNotFound);
111
};
112
let health_status = res.data.indexingStatuses[0].health.as_str();
113
Ok(Json(json!({ "health": health_status })))
114
}
115
- Err(_) => return Err(CheckHealthError::QueryForwardingError),
+ Err(_) => Err(CheckHealthError::QueryForwardingError),
116
117
0 commit comments