forked from quic-go/quic-go
ci: enable the nolintlint linter (#5221)
This linter helps us find unneeded nolint statements.
This commit is contained in:
@@ -229,7 +229,7 @@ func TestContextOnClientSide(t *testing.T) {
|
||||
return &tlsServerConf.Certificates[0], nil
|
||||
}
|
||||
|
||||
ctx, cancel := context.WithCancel(context.WithValue(context.Background(), "foo", "bar")) //nolint:staticcheck
|
||||
ctx, cancel := context.WithCancel(context.WithValue(context.Background(), "foo", "bar"))
|
||||
conn, err := quic.Dial(
|
||||
ctx,
|
||||
newUDPConnLocalhost(t),
|
||||
|
||||
@@ -675,7 +675,7 @@ func TestHTTPConnContext(t *testing.T) {
|
||||
func(s *http3.Server) {
|
||||
s.ConnContext = func(ctx context.Context, c *quic.Conn) context.Context {
|
||||
connCtxChan <- ctx
|
||||
ctx = context.WithValue(ctx, "foo", "bar") //nolint:staticcheck
|
||||
ctx = context.WithValue(ctx, "foo", "bar")
|
||||
return ctx
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user