mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-06-13 11:59:35 +03:00
Chore: Use a more direct and less error-prone return value (#4008)
Signed-off-by: pinglanlu <pinglanlu@outlook.com>
This commit is contained in:
@ -81,7 +81,7 @@ func (v *TimedUserValidator) GetAEAD(userHash []byte) (*protocol.MemoryUser, boo
|
||||
if err != nil {
|
||||
return nil, false, err
|
||||
}
|
||||
return userd.(*protocol.MemoryUser), true, err
|
||||
return userd.(*protocol.MemoryUser), true, nil
|
||||
}
|
||||
|
||||
func (v *TimedUserValidator) Remove(email string) bool {
|
||||
|
Reference in New Issue
Block a user