Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
doylemark committed Aug 27, 2024
1 parent babb83d commit c78afd6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions shared/src/server/health.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,7 @@ impl DataPlaneDiagnostic {
match self.user_process {
UserProcessHealth::Unknown(_) => true,
UserProcessHealth::Error(_) => false,
UserProcessHealth::Response { status_code, .. } => {
status_code >= 200 && status_code < 300
}
UserProcessHealth::Response { status_code, .. } => (200..300).contains(&status_code),
}
}
}
Expand Down

0 comments on commit c78afd6

Please sign in to comment.