1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Remove unnecessary parameter (#27671)

This commit is contained in:
Lunny Xiao
2023-10-18 23:03:10 +08:00
committed by GitHub
parent 83186eca80
commit 9852c92e9a
8 changed files with 23 additions and 25 deletions

View File

@@ -62,7 +62,7 @@ func DeleteRepository(ctx context.Context, doer *user_model.User, repo *repo_mod
notify_service.DeleteRepository(ctx, doer, repo)
}
if err := DeleteRepositoryDirectly(ctx, doer, repo.OwnerID, repo.ID); err != nil {
if err := DeleteRepositoryDirectly(ctx, doer, repo.ID); err != nil {
return err
}