Skip to content

Commit

Permalink
ignore false-positive lint
Browse files Browse the repository at this point in the history
  • Loading branch information
glorv committed Dec 6, 2023
1 parent 605cde6 commit 58767c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/executor/internal/calibrateresource/calibrate_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,8 @@ func fetchStoreMetrics(serversInfo []infoschema.ServerInfo, serverType string, o
})
if resp == nil {
var err1 error
// ignore false positive go line, can't use defer here because it's in a loop.
//nolint:bodyclose
resp, err1 = util.InternalHTTPClient().Do(req)
if err1 != nil {
if firstErr == nil {
Expand Down

0 comments on commit 58767c7

Please sign in to comment.