Merge pull request #883 from yujinqiu/fix-dup-func-call

Remove duplicate len function call.
pull/1162/head
DarienRaymond 7 years ago committed by GitHub
commit fec56dda70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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