Chore: Use a more direct and less error-prone return value (#4008)

Signed-off-by: pinglanlu <pinglanlu@outlook.com>
This commit is contained in:
pinglanlu 2024-11-12 23:44:41 +08:00 committed by GitHub
parent 48ac662298
commit 7b4a686b74
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

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