Skip to content

Commit e75c510

Browse files
committed
Remove lessuse code
1 parent f839864 commit e75c510

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

models/issues/issue_project.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -142,16 +142,6 @@ func IssueAssignOrRemoveProject(ctx context.Context, issue *Issue, doer *user_mo
142142
if !newProject.CanBeAccessedByOwnerRepo(issue.Repo.OwnerID, issue.Repo) {
143143
return util.NewPermissionDeniedErrorf("issue %d can't be accessed by project %d", issue.ID, newProject.ID)
144144
}
145-
if newColumnID == 0 {
146-
newDefaultColumn, err := newProject.MustDefaultColumn(ctx)
147-
if err != nil {
148-
return err
149-
}
150-
newColumnID = newDefaultColumn.ID
151-
if newColumnID == 0 {
152-
panic("newColumnID must not be zero") // shouldn't happen
153-
}
154-
}
155145

156146
pi = append(pi, &project_model.ProjectIssue{
157147
IssueID: issue.ID,

0 commit comments

Comments
 (0)