diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2023-10-18 23:03:10 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-18 15:03:10 +0000 |
commit | 9852c92e9a633fdd318fde5014a12ef299b990ef (patch) | |
tree | f4d196a7695cc6adc7f8ed8d4c822f01c567c396 /services/user | |
parent | 83186eca80d2b1586c1a46ff238de32e5a448f95 (diff) | |
download | gitea-9852c92e9a633fdd318fde5014a12ef299b990ef.tar.gz gitea-9852c92e9a633fdd318fde5014a12ef299b990ef.zip |
Remove unnecessary parameter (#27671)
Diffstat (limited to 'services/user')
-rw-r--r-- | services/user/user.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/user/user.go b/services/user/user.go index b754b0aacc..2806969638 100644 --- a/services/user/user.go +++ b/services/user/user.go @@ -175,7 +175,7 @@ func DeleteUser(ctx context.Context, u *user_model.User, purge bool) error { break } for _, repo := range repos { - if err := repo_service.DeleteRepositoryDirectly(ctx, u, u.ID, repo.ID); err != nil { + if err := repo_service.DeleteRepositoryDirectly(ctx, u, repo.ID); err != nil { return fmt.Errorf("unable to delete repository %s for %s[%d]. Error: %w", repo.Name, u.Name, u.ID, err) } } |