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

@ -594,9 +594,7 @@ func GetOrgByID(ctx context.Context, id int64) (*Organization, error) {
return nil, err
} else if !has {
return nil, user_model.ErrUserNotExist{
UID: id,
Name: "",
KeyID: 0,
UID: id,
}
}
return u, nil