diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2023-06-05 15:25:47 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-05 15:25:47 +0800 |
commit | 11598885b36871ba19e961fa59efecd38c17e01e (patch) | |
tree | 7c17b4c258e1cd2f457a44f09ed15317b01b9e24 /services | |
parent | ca35dec18b3d3d7dd5cde4c69a10ae830961faf7 (diff) | |
download | gitea-11598885b36871ba19e961fa59efecd38c17e01e.tar.gz gitea-11598885b36871ba19e961fa59efecd38c17e01e.zip |
Use RepositoryList instead of []*Repository (#25074)
Diffstat (limited to 'services')
-rw-r--r-- | services/repository/check.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/repository/check.go b/services/repository/check.go index 3a1f0b7f30..84fdb7159b 100644 --- a/services/repository/check.go +++ b/services/repository/check.go @@ -115,7 +115,7 @@ func GitGcRepo(ctx context.Context, repo *repo_model.Repository, timeout time.Du return nil } -func gatherMissingRepoRecords(ctx context.Context) ([]*repo_model.Repository, error) { +func gatherMissingRepoRecords(ctx context.Context) (repo_model.RepositoryList, error) { repos := make([]*repo_model.Repository, 0, 10) if err := db.Iterate( ctx, |