0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-04-04 05:45:23 +02:00

fix another lint error

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧ 2025-08-17 16:15:30 -04:00
parent ab1eb20ab3
commit 3bc69a0f73
No known key found for this signature in database
GPG Key ID: 924A5F6AF051E87C

View File

@ -49,7 +49,8 @@ func (g *groupItemGroup) Parent() Item {
return &groupItemGroup{group}
}
func (g *groupItemGroup) Children(doer *user_model.User) (items []Item) {
func (g *groupItemGroup) Children(doer *user_model.User) []Item {
var items []Item
repos := make([]*repo_model.Repository, 0)
sess := db.GetEngine(db.DefaultContext)
err := sess.Table("repository").
@ -76,7 +77,7 @@ func (g *groupItemGroup) Children(doer *user_model.User) (items []Item) {
for _, r := range repos {
items = append(items, &groupItemRepo{r})
}
return
return items
}
func (g *groupItemGroup) Avatar(ctx context.Context) string {