Skip to content

Commit

Permalink
suppress nilerr
Browse files Browse the repository at this point in the history
  • Loading branch information
zak-pawel committed Feb 8, 2024
1 parent 28e9a2c commit 73286c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/inputs/http_response/http_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ func (h *HTTPResponse) httpGather(u string) (map[string]interface{}, map[string]
return fields, tags, nil
} else if err != nil {
h.setBodyReadError("Failed to read body of HTTP Response : "+err.Error(), bodyBytes, fields, tags)
return fields, tags, nil
return fields, tags, nil //nolint:nilerr // error is handled properly
}

// Add the body of the response if expected
Expand Down

0 comments on commit 73286c3

Please sign in to comment.