mirror of
https://github.com/wyx2685/V2bX.git
synced 2026-11-04 01:00:21 +00:00
fix bug
This commit is contained in:
1 parent
0da1dd9b5c
commit
da5f94247d
1 file changed
+3
-2
@@ -342,8 +342,9 @@ func compareUserList(old, new *[]api.UserInfo) (deleted, added []int) {
|
||||
}
|
||||
l := len(tmp)
|
||||
for i := range *new {
|
||||
tmp[(*old)[i].GetUserEmail()] = struct{}{}
|
||||
tmp2[(*new)[i].GetUserEmail()] = struct{}{}
|
||||
e := (*new)[i].GetUserEmail()
|
||||
tmp[e] = struct{}{}
|
||||
tmp2[e] = struct{}{}
|
||||
if l != len(tmp) {
|
||||
added = append(added, i)
|
||||
l++
|
||||
|
||||
Reference in new issue
Block a user