Skip to content

Commit

Permalink
Remove unnecessary read-back of the index value
Browse files Browse the repository at this point in the history
  • Loading branch information
guillep2k committed Aug 23, 2019
1 parent a1b93a2 commit 3ae8be2
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions models/issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -1115,14 +1115,6 @@ func newIssue(e *xorm.Session, doer *User, opts NewIssueOptions) (err error) {
return err
}

inserted, err := getIssueByID(e, opts.Issue.ID)
if err != nil {
return err
}

// Patch Index with the value calculated by the database
opts.Issue.Index = inserted.Index

if opts.Issue.MilestoneID > 0 {
if err = changeMilestoneAssign(e, doer, opts.Issue, -1); err != nil {
return err
Expand Down

0 comments on commit 3ae8be2

Please sign in to comment.