Skip to content

Commit 3a1fb94

Browse files
committed
Fix bug
1 parent 3b8ce54 commit 3a1fb94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/repo/user_repo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ func GetRepoAssignees(ctx context.Context, repo *Repository) (_ []*user_model.Us
131131
// Leave a seat for owner itself to append later, but if owner is an organization
132132
// and just waste 1 unit is cheaper than re-allocate memory once.
133133
users := make([]*user_model.User, 0, len(uniqueUserIDs)+1)
134-
if len(userIDs) > 0 {
134+
if len(uniqueUserIDs) > 0 {
135135
if err = e.In("id", uniqueUserIDs.Values()).
136136
Where(builder.Eq{"`user`.is_active": true}).
137137
OrderBy(user_model.GetOrderByName()).

0 commit comments

Comments
 (0)