mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-30 05:56:54 -05:00
Merge pull request #883 from yujinqiu/fix-dup-func-call
Remove duplicate len function call.
This commit is contained in:
commit
fec56dda70
@ -159,7 +159,7 @@ func (v *TimedUserValidator) Remove(email string) bool {
|
||||
return false
|
||||
}
|
||||
ulen := len(v.users)
|
||||
if idx < len(v.users) {
|
||||
if idx < ulen {
|
||||
v.users[idx] = v.users[ulen-1]
|
||||
v.users[ulen-1] = nil
|
||||
v.users = v.users[:ulen-1]
|
||||
|
Loading…
Reference in New Issue
Block a user