style: make chained comparison of status_code clearer

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
Mateo Wang 2026-06-18 15:31:38 -07:00 • committed by GitHub
parent 2e4066be4d
commit 2c24bd6366
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -54,7 +54,7 @@ class ProbeResult:
def healthy(self) -> bool:
# Route exists (not 404), handler did not crash (not 5xx), request
# completed (not -1). A 4xx (missing params/auth) still means it ran.
return 200 <= self.status_code != 404 and self.status_code < 500
return 200 <= self.status_code < 500 and self.status_code != 404
def __str__(self) -> str:
return f"GET {self.url} -> {self.status_code}\n{self.body[:600]}"