mirror of
https://github.com/wyx2685/V2bX.git
synced 2026-02-05 05:00: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)
|
l := len(tmp)
|
||||||
for i := range *new {
|
for i := range *new {
|
||||||
tmp[(*old)[i].GetUserEmail()] = struct{}{}
|
e := (*new)[i].GetUserEmail()
|
||||||
tmp2[(*new)[i].GetUserEmail()] = struct{}{}
|
tmp[e] = struct{}{}
|
||||||
|
tmp2[e] = struct{}{}
|
||||||
if l != len(tmp) {
|
if l != len(tmp) {
|
||||||
added = append(added, i)
|
added = append(added, i)
|
||||||
l++
|
l++
|
||||||
|
|||||||
Reference in New Issue
Block a user