Skip to content

Commit

Permalink
gofmt with go1.19 linting (#427)
Browse files Browse the repository at this point in the history
  • Loading branch information
dprotaso authored Dec 8, 2022
1 parent f3cc8e5 commit 2177139
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 21 deletions.
14 changes: 7 additions & 7 deletions pkg/client/gatewayapi/clientset/versioned/fake/register.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions pkg/client/gatewayapi/clientset/versioned/scheme/register.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions pkg/reconciler/ingress/resources/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,10 @@ func pathMatchTypePtr(val gatewayv1alpa2.PathMatchType) *gatewayv1alpa2.PathMatc
// For example, "hello-example.default.svc.cluster.local" will be
// returned from the following hosts in KIngress.
//
// - hosts:
// - hello.default
// - hello.default.svc
// - hello.default.svc.cluster.local
//
// - hosts:
// - hello.default
// - hello.default.svc
// - hello.default.svc.cluster.local
func LongestHost(hosts []string) string {
sort.Strings(hosts)
return hosts[len(hosts)-1]
Expand Down
4 changes: 2 additions & 2 deletions test/conformance/gateway-api/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
"encoding/pem"
"errors"
"fmt"
"io/ioutil"
"io"
"math/big"
"math/rand"
"net"
Expand Down Expand Up @@ -1034,7 +1034,7 @@ func RuntimeRequestWithExpectations(ctx context.Context, t *testing.T, client *h
}

if resp.StatusCode == http.StatusOK {
b, err := ioutil.ReadAll(resp.Body)
b, err := io.ReadAll(resp.Body)
if err != nil {
t.Error("Unable to read response body:", err)
DumpResponse(ctx, t, resp)
Expand Down

0 comments on commit 2177139

Please sign in to comment.