aboutsummaryrefslogtreecommitdiffstats
path: root/services/repository/check.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2023-10-18 23:03:10 +0800
committerGitHub <noreply@github.com>2023-10-18 15:03:10 +0000
commit9852c92e9a633fdd318fde5014a12ef299b990ef (patch)
treef4d196a7695cc6adc7f8ed8d4c822f01c567c396 /services/repository/check.go
parent83186eca80d2b1586c1a46ff238de32e5a448f95 (diff)
downloadgitea-9852c92e9a633fdd318fde5014a12ef299b990ef.tar.gz
gitea-9852c92e9a633fdd318fde5014a12ef299b990ef.zip
Remove unnecessary parameter (#27671)
Diffstat (limited to 'services/repository/check.go')
-rw-r--r--services/repository/check.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/repository/check.go b/services/repository/check.go
index 6ad644561e..2f26d030c3 100644
--- a/services/repository/check.go
+++ b/services/repository/check.go
@@ -164,7 +164,7 @@ func DeleteMissingRepositories(ctx context.Context, doer *user_model.User) error
default:
}
log.Trace("Deleting %d/%d...", repo.OwnerID, repo.ID)
- if err := DeleteRepositoryDirectly(ctx, doer, repo.OwnerID, repo.ID); err != nil {
+ if err := DeleteRepositoryDirectly(ctx, doer, repo.ID); err != nil {
log.Error("Failed to DeleteRepository %-v: Error: %v", repo, err)
if err2 := system_model.CreateRepositoryNotice("Failed to DeleteRepository %s [%d]: Error: %v", repo.FullName(), repo.ID, err); err2 != nil {
log.Error("CreateRepositoryNotice: %v", err)