0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-02-25 08:06:11 +01:00

revert unnecessary change

This commit is contained in:
Lunny Xiao 2025-12-25 17:39:59 -08:00
parent 3c34682924
commit 2a6408b386
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A

View File

@ -1441,7 +1441,6 @@ func CompareAndPullRequestPost(ctx *context.Context) {
return
}
// FIXME: this should be moved in the function NewPullRequest
if projectID > 0 && ctx.Repo.CanWrite(unit.TypeProjects) {
if err := issues_model.IssueAssignOrRemoveProject(ctx, pullIssue, ctx.Doer, projectID, 0); err != nil {
if !errors.Is(err, util.ErrPermissionDenied) {