From a7fbf003c140237e5e815dabca759ac901208e5d Mon Sep 17 00:00:00 2001 From: Pierre Souchay Date: Mon, 6 Apr 2020 15:11:04 +0200 Subject: [PATCH] [LINT] Close resp.Body to avoid linter complaining (#7600) --- agent/ui_endpoint_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/agent/ui_endpoint_test.go b/agent/ui_endpoint_test.go index 98ce0038a..0bffefc5d 100644 --- a/agent/ui_endpoint_test.go +++ b/agent/ui_endpoint_test.go @@ -51,6 +51,7 @@ func TestUiIndex(t *testing.T) { if err != nil { t.Fatalf("err: %v", err) } + defer resp.Body.Close() // Verify the response if resp.StatusCode != 200 {