1
0
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:
DarienRaymond 2018-02-26 10:56:49 +01:00 committed by GitHub
commit fec56dda70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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]