From b3b7598ec6846d53d7deb2c84781b06e22c93044 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Thu, 13 Dec 2018 23:55:43 +0800 Subject: Improve performance of dashboard (#4977) --- models/update.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'models/update.go') diff --git a/models/update.go b/models/update.go index 0f71cd1e70..9cd4d0d977 100644 --- a/models/update.go +++ b/models/update.go @@ -51,7 +51,7 @@ func ListToPushCommits(l *list.List) *PushCommits { } commits = append(commits, CommitToPushCommit(commit)) } - return &PushCommits{l.Len(), commits, "", nil} + return &PushCommits{l.Len(), commits, "", make(map[string]string), make(map[string]*User)} } // PushUpdateOptions defines the push update options -- cgit v1.2.3