mirror of
https://github.com/gogs/gogs.git
synced 2025-05-29 10:42:30 +00:00
chore: fix miss makezero bug (#7752)
This commit is contained in:
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…
x
Reference in New Issue
Block a user