1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-05-11 05:55:29 +00:00

Remove unused KeyID. (#29167)

`KeyID` is never set.
This commit is contained in:
KN4CK3R
2024-02-14 18:50:10 +01:00
committed by GitHub
parent d0183dfa49
commit 155269fa58
4 changed files with 12 additions and 17 deletions

View File

@@ -332,9 +332,7 @@ func MakeEmailPrimary(ctx context.Context, email *EmailAddress) error {
return err
} else if !has {
return ErrUserNotExist{
UID: email.UID,
Name: "",
KeyID: 0,
UID: email.UID,
}
}