update golangci-lint action to v3, golangci-lint to v1.48.0 (#3499)

* run gofmt -s -w

* stop using the deprecated io/ioutil package

* update golangci-lint action to v3, golangci-lint to v1.48.0
This commit is contained in:
Marten Seemann
2022-08-10 18:50:48 +02:00
committed by GitHub
parent 7ebe1430ef
commit 498475fa60
20 changed files with 39 additions and 37 deletions

View File

@@ -2,7 +2,7 @@ package testdata
import (
"crypto/tls"
"io/ioutil"
"io"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
@@ -24,7 +24,7 @@ var _ = Describe("certificates", func() {
conn, err := tls.Dial("tcp", "localhost:4433", &tls.Config{RootCAs: GetRootCA()})
Expect(err).ToNot(HaveOccurred())
data, err := ioutil.ReadAll(conn)
data, err := io.ReadAll(conn)
Expect(err).ToNot(HaveOccurred())
Expect(string(data)).To(Equal("foobar"))
})