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:
parent
ab1eb20ab3
commit
3bc69a0f73
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user