Skip to content

Commit 0688517

Browse files
lunnyZettat123
andauthored
Update models/organization/org_list.go
Co-authored-by: Zettat123 <[email protected]>
1 parent 1a152ad commit 0688517

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)