mirror of
https://github.com/enix/x509-certificate-exporter.git
synced 2026-08-23 22:16:39 +00:00
chore: remove unreachable code
This commit is contained in:
@@ -220,10 +220,6 @@ func searchYAMLFile(filename, expr string) (string, error) {
|
||||
}
|
||||
|
||||
func readAndParseKubeSecret(secret *v1.Secret, key string) ([]*parsedCertificate, error) {
|
||||
if secret.Data[key] == nil {
|
||||
return nil, fmt.Errorf("secret %s does not have a key \"%s\"", secret.Name, key)
|
||||
}
|
||||
|
||||
certs, err := parsePEM(secret.Data[key])
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user