diff --git a/pkg/restapi/configure_goldpinger.go b/pkg/restapi/configure_goldpinger.go index 7da276f..bb5abf7 100644 --- a/pkg/restapi/configure_goldpinger.go +++ b/pkg/restapi/configure_goldpinger.go @@ -75,9 +75,9 @@ func configureAPI(api *operations.GoldpingerAPI) http.Handler { goldpinger.CountCall("received", "healthz") healthResult := goldpinger.HealthCheck() if *healthResult.OK { - return operations.NewHealthzServiceUnavailable().WithPayload(healthResult) - } else { return operations.NewHealthzOK().WithPayload(healthResult) + } else { + return operations.NewHealthzServiceUnavailable().WithPayload(healthResult) } })