aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api
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 /routers/api
parent83186eca80d2b1586c1a46ff238de32e5a448f95 (diff)
downloadgitea-9852c92e9a633fdd318fde5014a12ef299b990ef.tar.gz
gitea-9852c92e9a633fdd318fde5014a12ef299b990ef.zip
Remove unnecessary parameter (#27671)
Diffstat (limited to 'routers/api')
-rw-r--r--routers/api/v1/repo/migrate.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/repo/migrate.go b/routers/api/v1/repo/migrate.go
index 14ff04e7bf..839fbfe8a1 100644
--- a/routers/api/v1/repo/migrate.go
+++ b/routers/api/v1/repo/migrate.go
@@ -200,7 +200,7 @@ func Migrate(ctx *context.APIContext) {
}
if repo != nil {
- if errDelete := repo_service.DeleteRepositoryDirectly(ctx, ctx.Doer, repoOwner.ID, repo.ID); errDelete != nil {
+ if errDelete := repo_service.DeleteRepositoryDirectly(ctx, ctx.Doer, repo.ID); errDelete != nil {
log.Error("DeleteRepository: %v", errDelete)
}
}