aboutsummaryrefslogtreecommitdiffstats
path: root/models/organization
diff options
context:
space:
mode:
authorKN4CK3R <admin@oldschoolhack.me>2024-02-14 18:50:10 +0100
committerGitHub <noreply@github.com>2024-02-14 12:50:10 -0500
commit155269fa586c41a268530c3bb56349e68e6761d7 (patch)
tree6164c1178e95e3aec7d09f07af02ae0ae6d3ec02 /models/organization
parentd0183dfa49125a9e533dbe8beab4d8a3724a4f07 (diff)
downloadgitea-155269fa586c41a268530c3bb56349e68e6761d7.tar.gz
gitea-155269fa586c41a268530c3bb56349e68e6761d7.zip
Remove unused `KeyID`. (#29167)
`KeyID` is never set.
Diffstat (limited to 'models/organization')
-rw-r--r--models/organization/org.go4
1 files changed, 1 insertions, 3 deletions
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