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