From 3fcf1bc9e26e2e0ec2d795de108c048684db66cd 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 4d16caf25..22ae02e85 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 }