Skip to content

Commit edf61d6

Browse files
committed
Merge branch 'lunny/reimplement_GetUserOrgsLit' of github.com:lunny/gitea into lunny/reimplement_GetUserOrgsLit
2 parents 4a93199 + 0688517 commit edf61d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/organization/org_list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ func GetUserOrgsList(ctx context.Context, user *user_model.User) ([]*MinimalOrg,
125125
return nil, err
126126
}
127127

128-
orgCountMap := make(map[int64]int)
128+
orgCountMap := make(map[int64]int, len(orgCounts))
129129
for _, orgCount := range orgCounts {
130130
orgCountMap[orgCount.OrgID] = orgCount.RepoCount
131131
}

0 commit comments

Comments
 (0)