diff --git a/protocol/daemons/server/types/health_checker.go b/protocol/daemons/server/types/health_checker.go index 835b0a5ad0..9f2fb2113f 100644 --- a/protocol/daemons/server/types/health_checker.go +++ b/protocol/daemons/server/types/health_checker.go @@ -170,11 +170,9 @@ func (hc *healthChecker) Poll() { err := hc.healthCheckable.HealthCheck() now := hc.timeProvider.Now() - // Capture healthy response. - - if err == nil { + if err == nil { // Capture healthy response. hc.mutableState.ReportSuccess(now) - } else { + } else { // Capture unhealthy response. streakDuration := hc.mutableState.ReportFailure(now, err) // If the service has been unhealthy for longer than the maximum acceptable unhealthy duration, execute the // callback function.