From 155269fa586c41a268530c3bb56349e68e6761d7 Mon Sep 17 00:00:00 2001 From: KN4CK3R Date: Wed, 14 Feb 2024 18:50:10 +0100 Subject: Remove unused `KeyID`. (#29167) `KeyID` is never set. --- models/organization/org.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'models/organization') diff --git a/models/organization/org.go b/models/organization/org.go index 23a4e2f96a..b4919defb4 100644 --- a/models/organization/org.go +++ b/models/organization/org.go @@ -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 -- cgit v1.2.3