Browse Source

Fix linting issue

Daniel Hix 4 years ago
parent
commit
3ff2bfd559
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pkg/provider/vault/vault.go

+ 1 - 1
pkg/provider/vault/vault.go

@@ -256,7 +256,7 @@ func (v *client) newConfig() (*vault.Config, error) {
 			ctx := context.Background()
 			res, err := v.secretKeyRef(ctx, &secretRef)
 			if err != nil {
-				return nil, errors.New(fmt.Sprintf(errVaultCert, err))
+				return nil, fmt.Errorf(errVaultCert, err)
 			}
 
 			ok := caCertPool.AppendCertsFromPEM([]byte(res))