From 2c56f5fd9c3a469560b78bae8de4930d1c331fa6 Mon Sep 17 00:00:00 2001 From: Jinqiu Yu Date: Mon, 26 Feb 2018 08:57:43 +0800 Subject: [PATCH] Remove duplicate len function call. --- proxy/vmess/vmess.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/vmess/vmess.go b/proxy/vmess/vmess.go index 52ead21f..6d5510ad 100644 --- a/proxy/vmess/vmess.go +++ b/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]