Fix linter errors

This commit is contained in:
Andrew Keesler 2020-08-25 08:26:42 -04:00
parent 6e59596285
commit 4306599396
No known key found for this signature in database
GPG Key ID: 27CE0444346F9413
2 changed files with 10 additions and 3 deletions

View File

@ -197,7 +197,7 @@ func getClusterCASigner(ctx context.Context, serverInstallationNamespace string)
if err != nil {
ticker.Stop()
updateErr := issuerconfig.CreateOrUpdateCredentialIssuerConfig(
if updateErr := issuerconfig.CreateOrUpdateCredentialIssuerConfig(
ctx,
serverInstallationNamespace,
pinnipedClient,
@ -212,8 +212,9 @@ func getClusterCASigner(ctx context.Context, serverInstallationNamespace string)
},
}
},
)
klog.Errorf("error performing create or update on CredentialIssuerConfig to add strategy error: %w", updateErr)
); updateErr != nil {
klog.Errorf("error performing create or update on CredentialIssuerConfig to add strategy error: %s", updateErr.Error())
}
return nil, nil, fmt.Errorf("could not load cluster signing CA: %w", err)
}
@ -235,6 +236,7 @@ func getClusterCASigner(ctx context.Context, serverInstallationNamespace string)
},
)
if updateErr != nil {
//nolint:goerr113
return nil, nil, fmt.Errorf("error performing create or update on CredentialIssuerConfig to add strategy success: %w", updateErr)
}

View File

@ -1,3 +1,8 @@
/*
Copyright 2020 VMware, Inc.
SPDX-License-Identifier: Apache-2.0
*/
package library
import (