Skip to content

Commit

Permalink
Fix linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
maraino authored Jun 13, 2024
1 parent 1b886a4 commit 615f8c8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions utils/cautils/token_generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,12 @@ func generateOIDCToken(ctx *cli.Context, p *provisioner.OIDC) (string, error) {
"--client-id", p.ClientID, "--client-secret", p.ClientSecret}
if len(p.Scopes) != 0 {
for _, keyval := range p.Scopes {
args = append(args, "--scope")
args = append(args, keyval)
args = append(args, "--scope", keyval)
}
}
if len(p.AuthParams) != 0 {
for _, keyval := range p.AuthParams {
args = append(args, "--auth-param")
args = append(args, keyval)
args = append(args, "--auth-param", keyval)
}
}
if ctx.Bool("console") {
Expand Down

0 comments on commit 615f8c8

Please sign in to comment.