Suppress request noctx linter.
This commit is contained in:
@ -143,6 +143,7 @@ func HTTPDelete(url string, body io.Reader) (response *http.Response, err error)
|
||||
|
||||
// HTTPPatch sends a Patch Http Request with body to the passed url.
|
||||
func HTTPPatch(url, contentType string, body io.Reader) (response *http.Response, err error) {
|
||||
//nolint:noctx // we don't need a http.NewRequestWithContext in our tests
|
||||
req, err := httpRequest(http.MethodPatch, url, body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@ -157,6 +158,7 @@ func HTTPPatch(url, contentType string, body io.Reader) (response *http.Response
|
||||
}
|
||||
|
||||
func HTTPPut(url string, body io.Reader) (response *http.Response, err error) {
|
||||
//nolint:noctx // we don't need a http.NewRequestWithContext in our tests
|
||||
req, err := httpRequest(http.MethodPut, url, body)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
Reference in New Issue
Block a user