From bd66fa586a0da58c4cf2f5f8390aef4bac9d0527 Mon Sep 17 00:00:00 2001 From: yp05327 <576951401@qq.com> Date: Sat, 18 Feb 2023 21:11:03 +0900 Subject: Rename `repo.GetOwner` to `repo.LoadOwner` (#22967) Fixes https://github.com/go-gitea/gitea/issues/22963 --------- Co-authored-by: Yarden Shoham --- modules/doctor/misc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/doctor/misc.go') diff --git a/modules/doctor/misc.go b/modules/doctor/misc.go index 73df513901..f20b5b26d5 100644 --- a/modules/doctor/misc.go +++ b/modules/doctor/misc.go @@ -141,7 +141,7 @@ func checkDaemonExport(ctx context.Context, logger log.Logger, autofix bool) err if owner, has := cache.Get(repo.OwnerID); has { repo.Owner = owner.(*user_model.User) } else { - if err := repo.GetOwner(ctx); err != nil { + if err := repo.LoadOwner(ctx); err != nil { return err } cache.Add(repo.OwnerID, repo.Owner) -- cgit v1.2.3