mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-08 20:43:24 +02:00
Fixed linting errors for variable definitions
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -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