mirror of
https://github.com/wyx2685/V2bX.git
synced 2026-02-04 04:30:08 +00:00
fix bug
This commit is contained in:
@@ -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