summaryrefslogtreecommitdiffstats
path: root/models/repo_collaboration.go
diff options
context:
space:
mode:
authorThomas Boerger <thomas@webhippie.de>2016-11-29 14:05:26 +0100
committerThomas Boerger <thomas@webhippie.de>2016-11-29 14:05:26 +0100
commit6dd2c3b2dbff129e23ce0e35ea0d7ebc8f0a6249 (patch)
tree79eaedb555763e49be55db114a07fa3972d6f4ff /models/repo_collaboration.go
parent42ec5ce740fdd646755ca38ea5ce20f6cc7dc6b1 (diff)
downloadgitea-6dd2c3b2dbff129e23ce0e35ea0d7ebc8f0a6249.tar.gz
gitea-6dd2c3b2dbff129e23ce0e35ea0d7ebc8f0a6249.zip
Fixed linting errors for variable definitions
Diffstat (limited to 'models/repo_collaboration.go')
-rw-r--r--models/repo_collaboration.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo_collaboration.go b/models/repo_collaboration.go
index 0561ad86be..308f57b7d2 100644
--- a/models/repo_collaboration.go
+++ b/models/repo_collaboration.go
@@ -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})
}