chore: update to go 1.20 (#5968)

Co-authored-by: Colin Adler <colin1adler@gmail.com>
This commit is contained in:
Kyle Carberry
2023-02-02 12:36:27 -06:00
committed by GitHub
parent 4df1031f8b
commit 026b1cd2a4
24 changed files with 91 additions and 93 deletions

View File

@ -24,7 +24,7 @@ import (
func randRemoteAddr() string {
var b [4]byte
// nolint:gosec
rand.Read(b[:])
_, _ = rand.Read(b[:])
// nolint:gosec
return fmt.Sprintf("%s:%v", net.IP(b[:]).String(), rand.Int31()%(1<<16))
}

View File

@ -360,6 +360,7 @@ func TestIsOrgRole(t *testing.T) {
// nolint:paralleltest
for _, c := range testCases {
c := c
t.Run(c.RoleName, func(t *testing.T) {
t.Parallel()
orgID, ok := rbac.IsOrgRole(c.RoleName)

View File

@ -46,9 +46,9 @@ func ConvertRegoAst(cfg ConvertConfig, partial *rego.PartialQueries) (sqltypes.B
}
if i != 0 {
builder.WriteString("\n")
_, _ = builder.WriteString("\n")
}
builder.WriteString(q.String())
_, _ = builder.WriteString(q.String())
queries = append(queries, converted)
}

View File

@ -44,7 +44,7 @@ func TestChecker_Notify(t *testing.T) {
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(http.StatusOK)
w.Write(b)
_, _ = w.Write(b)
}
}))
defer srv.Close()