Skip to content

Commit

Permalink
Initialize a user data slice with defined capacity
Browse files Browse the repository at this point in the history
  • Loading branch information
bcmmbaga committed Sep 27, 2023
1 parent b155ee2 commit cebf9d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion management/server/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -938,7 +938,7 @@ func (am *DefaultAccountManager) warmupIDPCache() error {
if err == nil {
data := userData[accountID.Id]
if data == nil {
data = make([]*idp.UserData, 0)
data = make([]*idp.UserData, 1)
}

user.AppMetadata.WTAccountID = accountID.Id
Expand Down

0 comments on commit cebf9d9

Please sign in to comment.