forked from quic-go/quic-go
enable the gofmt linter
This commit is contained in:
@@ -22,6 +22,7 @@ linters:
|
|||||||
- depguard
|
- depguard
|
||||||
- goconst
|
- goconst
|
||||||
- goimports
|
- goimports
|
||||||
|
- gofmt
|
||||||
- gosimple
|
- gosimple
|
||||||
- ineffassign
|
- ineffassign
|
||||||
- misspell
|
- misspell
|
||||||
|
|||||||
@@ -116,7 +116,7 @@ var _ = BeforeSuite(func() {
|
|||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
tlsConfig = &tls.Config{
|
tlsConfig = &tls.Config{
|
||||||
Certificates: []tls.Certificate{tls.Certificate{
|
Certificates: []tls.Certificate{{
|
||||||
Certificate: [][]byte{leafCert.Raw},
|
Certificate: [][]byte{leafCert.Raw},
|
||||||
PrivateKey: leafPrivateKey,
|
PrivateKey: leafPrivateKey,
|
||||||
}},
|
}},
|
||||||
@@ -260,7 +260,7 @@ func generateTLSConfigWithLongCertChain(ca *x509.Certificate, caPrivateKey *rsa.
|
|||||||
rawCerts[0] = leafCert.Raw
|
rawCerts[0] = leafCert.Raw
|
||||||
|
|
||||||
return &tls.Config{
|
return &tls.Config{
|
||||||
Certificates: []tls.Certificate{tls.Certificate{
|
Certificates: []tls.Certificate{{
|
||||||
Certificate: rawCerts,
|
Certificate: rawCerts,
|
||||||
PrivateKey: leafPrivateKey,
|
PrivateKey: leafPrivateKey,
|
||||||
}},
|
}},
|
||||||
|
|||||||
Reference in New Issue
Block a user