Skip to content

Commit 615f8c8

Browse files
authored
Fix linter warnings
1 parent 1b886a4 commit 615f8c8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

utils/cautils/token_generator.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,14 +126,12 @@ func generateOIDCToken(ctx *cli.Context, p *provisioner.OIDC) (string, error) {
126126
"--client-id", p.ClientID, "--client-secret", p.ClientSecret}
127127
if len(p.Scopes) != 0 {
128128
for _, keyval := range p.Scopes {
129-
args = append(args, "--scope")
130-
args = append(args, keyval)
129+
args = append(args, "--scope", keyval)
131130
}
132131
}
133132
if len(p.AuthParams) != 0 {
134133
for _, keyval := range p.AuthParams {
135-
args = append(args, "--auth-param")
136-
args = append(args, keyval)
134+
args = append(args, "--auth-param", keyval)
137135
}
138136
}
139137
if ctx.Bool("console") {

0 commit comments

Comments
 (0)