aboutsummaryrefslogtreecommitdiffstats
path: root/modules/doctor/misc.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/doctor/misc.go')
-rw-r--r--modules/doctor/misc.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/doctor/misc.go b/modules/doctor/misc.go
index 277d66a177..6f0e066f54 100644
--- a/modules/doctor/misc.go
+++ b/modules/doctor/misc.go
@@ -30,10 +30,9 @@ import (
func iterateRepositories(ctx context.Context, each func(*repo_model.Repository) error) error {
err := db.Iterate(
ctx,
- new(repo_model.Repository),
builder.Gt{"id": 0},
- func(idx int, bean interface{}) error {
- return each(bean.(*repo_model.Repository))
+ func(ctx context.Context, bean *repo_model.Repository) error {
+ return each(bean)
},
)
return err