From 764dabfcf7078b23efd0ce72199104dd92ec0d3c Mon Sep 17 00:00:00 2001 From: Frank Schroeder Date: Tue, 11 Jul 2017 07:13:29 -0700 Subject: [PATCH] agent: fix go vet issue --- agent/ui_endpoint.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 }