Skip to content

Commit 54b9a5d

Browse files
committed
fix: clippy command test
1 parent a57cb6f commit 54b9a5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/src/indexer_service/http/health.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,12 @@ pub async fn health(
106106

107107
match response_json {
108108
Ok(res) => {
109-
if res.data.indexingStatuses.len() == 0 {
109+
if res.data.indexingStatuses.is_empty() {
110110
return Err(CheckHealthError::DeploymentNotFound);
111111
};
112112
let health_status = res.data.indexingStatuses[0].health.as_str();
113113
Ok(Json(json!({ "health": health_status })))
114114
}
115-
Err(_) => return Err(CheckHealthError::QueryForwardingError),
115+
Err(_) => Err(CheckHealthError::QueryForwardingError),
116116
}
117117
}

0 commit comments

Comments
 (0)