Skip to content

Commit

Permalink
fix lint nolint: gosec
Browse files Browse the repository at this point in the history
Signed-off-by: shawnh2 <shawnhxh@outlook.com>
  • Loading branch information
shawnh2 committed Jul 25, 2024
1 parent 2bda652 commit 8bb1840
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/benchmark/suite/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ func (r *BenchmarkReport) getResponseFromPortForwarder(pod *types.NamespacedName

// Retrieving response by requesting Pod with url endpoint.
url := fmt.Sprintf("http://%s%s", fw.Address(), endpoint)
resp, err := http.Get(url)
resp, err := http.Get(url) // nolint: gosec

Check failure on line 191 in test/benchmark/suite/report.go

View workflow job for this annotation

GitHub Actions / lint

response body must be closed (bodyclose)
if err != nil {
return nil, fmt.Errorf("failed to get request: %w", err)
}
Expand Down

0 comments on commit 8bb1840

Please sign in to comment.