mirror of
				https://github.com/pcvolkmer/checkbar.git
				synced 2025-10-30 19:46:11 +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:
		| @@ -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 { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user