fix: fix slice init length (#658)
This commit is contained in:
parent
61c3bb887b
commit
97d7b28fc0
1 changed files with 1 additions and 1 deletions
|
@ -121,7 +121,7 @@ func (a *AuthRequest) Done() bool {
|
|||
}
|
||||
|
||||
func PromptToInternal(oidcPrompt oidc.SpaceDelimitedArray) []string {
|
||||
prompts := make([]string, len(oidcPrompt))
|
||||
prompts := make([]string, 0, len(oidcPrompt))
|
||||
for _, oidcPrompt := range oidcPrompt {
|
||||
switch oidcPrompt {
|
||||
case oidc.PromptNone,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue