mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Fixed linting errors for variable definitions
This commit is contained in:
@@ -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})
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user