From 9852c92e9a633fdd318fde5014a12ef299b990ef Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Wed, 18 Oct 2023 23:03:10 +0800 Subject: Remove unnecessary parameter (#27671) --- services/user/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'services/user') 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) } } -- cgit v1.2.3