1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-15 23:17:19 +00:00

Add missed return after ctx.ServerError (#31130)

This commit is contained in:
Lunny Xiao
2024-05-28 17:31:59 +08:00
committed by GitHub
parent cd7d1314fc
commit b6f15c7948
5 changed files with 5 additions and 0 deletions

View File

@@ -95,6 +95,7 @@ func UnadoptedRepos(ctx *context.Context) {
repoNames, count, err := repo_service.ListUnadoptedRepositories(ctx, q, &opts)
if err != nil {
ctx.ServerError("ListUnadoptedRepositories", err)
return
}
ctx.Data["Dirs"] = repoNames
pager := context.NewPagination(count, opts.PageSize, opts.Page, 5)