Răsfoiți Sursa

style: format code with Go fmt and Gofumpt

This commit fixes the style issues introduced in 36833b1 according to the output
from Go fmt and Gofumpt.

Details: https://github.com/gogs/gogs/pull/8105
deepsource-autofix[bot] 2 săptămâni în urmă
părinte
comite
e3e107f95d
1 a modificat fișierele cu 4 adăugiri și 4 ștergeri
  1. 4 4
      internal/database/milestone.go

+ 4 - 4
internal/database/milestone.go

@@ -16,7 +16,7 @@ import (
 // Milestone represents a milestone of repository.
 type Milestone struct {
 	ID              int64
-	RepoID          int64  `gorm:"index"`
+	RepoID          int64 `gorm:"index"`
 	Name            string
 	Content         string `gorm:"type:text"`
 	RenderedContent string `gorm:"-" json:"-"`
@@ -271,7 +271,7 @@ func changeMilestoneAssign(e *gorm.DB, issue *Issue, oldMilestoneID int64) error
 		if err = updateMilestone(e, m); err != nil {
 			return err
 		}
-		
+
 		if err = e.Exec("UPDATE `issue_user` SET milestone_id = 0 WHERE issue_id = ?", issue.ID).Error; err != nil {
 			return err
 		}
@@ -293,7 +293,7 @@ func changeMilestoneAssign(e *gorm.DB, issue *Issue, oldMilestoneID int64) error
 		if err = updateMilestone(e, m); err != nil {
 			return err
 		}
-		
+
 		if err = e.Exec("UPDATE `issue_user` SET milestone_id = ? WHERE issue_id = ?", m.ID, issue.ID).Error; err != nil {
 			return err
 		}
@@ -378,7 +378,7 @@ func DeleteMilestoneOfRepoByID(repoID, id int64) error {
 		if err := tx.Exec("UPDATE `issue` SET milestone_id = 0 WHERE milestone_id = ?", m.ID).Error; err != nil {
 			return err
 		}
-		
+
 		return tx.Exec("UPDATE `issue_user` SET milestone_id = 0 WHERE milestone_id = ?", m.ID).Error
 	})
 }