Other: Update golangci-lint to v1.50.0

This commit is contained in:
Leander Beernaert
2022-10-17 11:02:56 +02:00
parent e0603f741f
commit 9d800324af
70 changed files with 247 additions and 277 deletions

View File

@ -18,7 +18,7 @@
package liveapi
import (
"io/ioutil"
"io"
"net/http"
"github.com/pkg/errors"
@ -49,7 +49,7 @@ func (t *fakeTransport) RoundTrip(req *http.Request) (*http.Response, error) {
return nil, errors.Wrap(err, "failed to get body")
}
if bodyReader != nil {
body, err = ioutil.ReadAll(bodyReader)
body, err = io.ReadAll(bodyReader)
if err != nil {
return nil, errors.Wrap(err, "failed to read body")
}