Skip to content

Commit e7a2929

Browse files
committed
fix: linter
1 parent 85b8c39 commit e7a2929

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

internal/helm_client.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ func newDefaultRegistryClient(credentialsPath string, enableCache bool, caFilePa
272272
if caFilePath != "" || insecureSkipTLSVerify {
273273
tlsConf, err := newClientTLS(caFilePath, insecureSkipTLSVerify)
274274
if err != nil {
275-
return nil, fmt.Errorf("can't create TLS config for client: %s", err)
275+
return nil, fmt.Errorf("can't create TLS config for client: %w", err)
276276
}
277277
opts = append(opts, registry.ClientOptHTTPClient(&http.Client{
278278
Transport: &http.Transport{
@@ -287,6 +287,7 @@ func newDefaultRegistryClient(credentialsPath string, enableCache bool, caFilePa
287287
}),
288288
)
289289
}
290+
290291
return registry.NewClient(opts...)
291292
}
292293

@@ -315,6 +316,7 @@ func certPoolFromFile(filename string) (*x509.CertPool, error) {
315316
if !cp.AppendCertsFromPEM(b) {
316317
return nil, errors.Errorf("failed to append certificates from file: %s", filename)
317318
}
319+
318320
return cp, nil
319321
}
320322

internal/helm_client_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ func TestNewDefaultRegistryClient(t *testing.T) {
8989

9090
for _, tc := range testCases {
9191
t.Run(tc.name, func(t *testing.T) {
92+
t.Parallel()
9293
g := NewWithT(t)
9394
client, err := newDefaultRegistryClient(
9495
tc.credentialsPath,

0 commit comments

Comments
 (0)