upgrade linter and fix new lint errors

This commit is contained in:
Ryan Richard
2024-08-19 15:45:32 -07:00
parent bee87395b1
commit 376b83050a
7 changed files with 4 additions and 13 deletions
-1
View File
@@ -745,7 +745,6 @@ func validateKubeconfig(ctx context.Context, flags getKubeconfigParams, kubeconf
func countCACerts(pemData []byte) int {
pool := x509.NewCertPool()
pool.AppendCertsFromPEM(pemData)
//nolint:staticcheck // since we're not using .Subjects() to access the system pool
return len(pool.Subjects())
}