summaryrefslogtreecommitdiffstats
path: root/models/issue_milestone.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/issue_milestone.go')
-rw-r--r--models/issue_milestone.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/models/issue_milestone.go b/models/issue_milestone.go
index d3d9f7702f..ec3cbb91db 100644
--- a/models/issue_milestone.go
+++ b/models/issue_milestone.go
@@ -282,7 +282,7 @@ func changeMilestoneAssign(e *xorm.Session, doer *User, issue *Issue, oldMilesto
return err
}
- var opts = &CreateCommentOptions{
+ opts := &CreateCommentOptions{
Type: CommentTypeMilestone,
Doer: doer,
Repo: issue.Repo,
@@ -366,7 +366,7 @@ func DeleteMilestoneByRepoID(repoID, id int64) error {
type MilestoneList []*Milestone
func (milestones MilestoneList) getMilestoneIDs() []int64 {
- var ids = make([]int64, 0, len(milestones))
+ ids := make([]int64, 0, len(milestones))
for _, ms := range milestones {
ids = append(ids, ms.ID)
}
@@ -596,7 +596,7 @@ func (milestones MilestoneList) loadTotalTrackedTimes(e Engine) error {
if len(milestones) == 0 {
return nil
}
- var trackedTimes = make(map[int64]int64, len(milestones))
+ trackedTimes := make(map[int64]int64, len(milestones))
// Get total tracked time by milestone_id
rows, err := e.Table("issue").