forked from kevadesu/forgejo
Fixed linting errors for variable definitions
This commit is contained in:
parent
42ec5ce740
commit
6dd2c3b2db
2 changed files with 2 additions and 2 deletions
|
@ -68,7 +68,7 @@ func (repo *Repository) AddCollaborator(u *User) error {
|
|||
}
|
||||
|
||||
func (repo *Repository) getCollaborations(e Engine) ([]*Collaboration, error) {
|
||||
collaborations := make([]*Collaboration, 0)
|
||||
var collaborations []*Collaboration
|
||||
return collaborations, e.Find(&collaborations, &Collaboration{RepoID: repo.ID})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue