1
0
mirror of https://github.com/pcvolkmer/checkbar.git synced 2025-04-19 11:06:50 +00:00

refactor: always return Warn state as last possible result
All checks were successful
CI / test (push) Successful in 1m52s

This commit is contained in:
Paul-Christian Volkmer 2024-03-31 14:04:21 +02:00
parent b693ac000b
commit 55fbf07370

View File

@ -18,10 +18,9 @@ impl Checker<'_> {
impl HttpBasedChecker for Checker<'_> {
async fn check_response(response: Response) -> CheckState {
if response.status().is_success() {
CheckState::Up
} else {
CheckState::Warn
return CheckState::Up;
}
CheckState::Warn
}
fn get_check_config(&self) -> &CheckConfig {