From 6dd2c3b2dbff129e23ce0e35ea0d7ebc8f0a6249 Mon Sep 17 00:00:00 2001
From: Thomas Boerger <thomas@webhippie.de>
Date: Tue, 29 Nov 2016 14:05:26 +0100
Subject: [PATCH] Fixed linting errors for variable definitions

---
 models/repo_collaboration.go | 2 +-
 models/update.go             | 2 +-
 2 files changed, 2 insertions(+), 2 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})
 }
 
diff --git a/models/update.go b/models/update.go
index 789b99e7b2..8b92dac358 100644
--- a/models/update.go
+++ b/models/update.go
@@ -65,7 +65,7 @@ func CommitToPushCommit(commit *git.Commit) *PushCommit {
 
 // ListToPushCommits transforms a list.List to PushCommits type.
 func ListToPushCommits(l *list.List) *PushCommits {
-	commits := make([]*PushCommit, 0)
+	var commits []*PushCommit
 	var actEmail string
 	for e := l.Front(); e != nil; e = e.Next() {
 		commit := e.Value.(*git.Commit)