mirror of https://github.com/gogs/gogs.git
chore: fix miss makezero bug (#7752)
parent
c8cd3e7125
commit
87f47166ac
|
@ -412,7 +412,7 @@ func RemoveOrgUser(orgID, userID int64) error {
|
|||
}
|
||||
|
||||
// Delete all repository accesses and unwatch them.
|
||||
repoIDs := make([]int64, len(repos))
|
||||
repoIDs := make([]int64, 0, len(repos))
|
||||
for i := range repos {
|
||||
repoIDs = append(repoIDs, repos[i].ID)
|
||||
if err = watchRepo(sess, user.ID, repos[i].ID, false); err != nil {
|
||||
|
|
Loading…
Reference in New Issue