Browse Source

[LINT] Close resp.Body to avoid linter complaining (#7600)

pull/7603/head
Pierre Souchay 5 years ago committed by GitHub
parent
commit
d1d016d61d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      agent/ui_endpoint_test.go

1
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 {

Loading…
Cancel
Save