Fixed linting errors for variable definitions

This commit is contained in:
Thomas Boerger committed 2016-11-29 14:05:26 +01:00
1 parent 42ec5ce740
commit 6dd2c3b2db
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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})
}