Skip to content

Commit

Permalink
fix: fix slice init length
Browse files Browse the repository at this point in the history
  • Loading branch information
cuishuang authored Oct 4, 2024
1 parent 61c3bb8 commit c7d24a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/server/storage/oidc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c7d24a5

Please sign in to comment.