Remove unused KeyID. (#29167)

`KeyID` is never set.

(cherry picked from commit 155269fa586c41a268530c3bb56349e68e6761d7)

Conflicts:
	models/user/email_address.go
	trivial context conflict
This commit is contained in:
KN4CK3R 2024-02-14 18:50:10 +01:00 committed by Earl Warren
parent 6eaabb1a9d
commit 52ef33b931
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
4 changed files with 12 additions and 17 deletions

View file

@ -153,9 +153,7 @@ func ReplaceInactivePrimaryEmail(ctx context.Context, oldEmail string, email *us
return err
} else if !has {
return user_model.ErrUserNotExist{
UID: email.UID,
Name: "",
KeyID: 0,
UID: email.UID,
}
}