summaryrefslogtreecommitdiffstats
path: root/models/update.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/update.go
parent42ec5ce740fdd646755ca38ea5ce20f6cc7dc6b1 (diff)
downloadgitea-6dd2c3b2dbff129e23ce0e35ea0d7ebc8f0a6249.tar.gz
gitea-6dd2c3b2dbff129e23ce0e35ea0d7ebc8f0a6249.zip
Fixed linting errors for variable definitions
Diffstat (limited to 'models/update.go')
-rw-r--r--models/update.go2
1 files changed, 1 insertions, 1 deletions
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)