mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-25 11:22:16 +00:00
refactor: append, build variable and type switch (#4940)
* refactor: append, build variable and type switch * fix: remove redundant space.
This commit is contained in:
parent
31557b1274
commit
743697a549
8 changed files with 42 additions and 46 deletions
|
@ -83,7 +83,7 @@ func addMultipleAssignees(x *xorm.Engine) error {
|
|||
return err
|
||||
}
|
||||
|
||||
allIssues := []Issue{}
|
||||
allIssues := []*Issue{}
|
||||
if err := sess.Find(&allIssues); err != nil {
|
||||
return err
|
||||
}
|
||||
|
@ -104,7 +104,7 @@ func addMultipleAssignees(x *xorm.Engine) error {
|
|||
return err
|
||||
}
|
||||
|
||||
allAssignementComments := []Comment{}
|
||||
allAssignementComments := []*Comment{}
|
||||
if err := sess.Where("type = ?", 9).Find(&allAssignementComments); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue