chore(internal): enable perfsprint linter

#### Description

enable perfsprint linter in internal/tlsutil

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
pull/31877/head
Matthieu MOREL 5 months ago
parent bd334848b4
commit 6524162a0e

@ -112,7 +112,7 @@ func NewTLSConfig(options ...TLSConfigOption) (*tls.Config, error) {
if len(to.caPEMBlock) > 0 {
cp := x509.NewCertPool()
if !cp.AppendCertsFromPEM(to.caPEMBlock) {
return nil, fmt.Errorf("failed to append certificates from pem block")
return nil, errors.New("failed to append certificates from pem block")
}
config.RootCAs = cp

Loading…
Cancel
Save