Browse Source

Remove duplicate len function call.

pull/883/head
Jinqiu Yu 7 years ago
parent
commit
2c56f5fd9c
  1. 2
      proxy/vmess/vmess.go

2
proxy/vmess/vmess.go

@ -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…
Cancel
Save