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
All checks were successful
CI / test (push) Successful in 1m52s
This commit is contained in:
parent
b693ac000b
commit
55fbf07370
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user