[PR Feedback] Reduce indentation by using is_ok()
@@ -193,20 +193,17 @@ impl State {
// it.
let service_group = state.service_group.clone();
state.clone().single_iteration().then(move |res| {
- match res {
- Ok(_) => {
+ if res.is_ok() {
trace!("Health check future for {} \
succeeded; continuing loop",
service_group);
Ok(Loop::Continue(state))
- }
- Err(_) => {
- trace!("Health check future for {} \
- failed failed; continuing loop.",
+ } else {
+ trace!("Health check future for {} failed \
+ failed; continuing loop.",
service_group);
Ok(Loop::Continue(state))
}
- }
})
})
}
