Skip to content

Commit

Permalink
fix golangci-lint
Browse files Browse the repository at this point in the history
Signed-off-by: Arvindh <[email protected]>
  • Loading branch information
arvindh123 committed Feb 19, 2024
1 parent f99ec6f commit 0d53381
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions certs/pki/vault.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func NewVaultClient(appRole, appSecret, host, namespace, path, role string, logg
if err != nil {
return nil, err
}
if len(namespace) > 0 {
if namespace != "" {
client.SetNamespace(namespace)
}

Expand Down Expand Up @@ -218,7 +218,7 @@ func (p *pkiAgent) login(ctx context.Context) error {
if err != nil {
return errors.Wrap(errFailedAppRole, err)
}
if len(p.namespace) > 0 {
if p.namespace != "" {
p.client.SetNamespace(p.namespace)
}
secret, err := p.client.Auth().Login(ctx, authMethod)
Expand Down

0 comments on commit 0d53381

Please sign in to comment.