diff --git a/agent/ui_endpoint.go b/agent/ui_endpoint.go index 4d16caf250..22ae02e85d 100644 --- a/agent/ui_endpoint.go +++ b/agent/ui_endpoint.go @@ -96,11 +96,9 @@ RPC: info.Checks = make([]*structs.HealthCheck, 0) } return info, nil - } else { - resp.WriteHeader(http.StatusNotFound) - return nil, nil } + resp.WriteHeader(http.StatusNotFound) return nil, nil }