0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-24 17:12:59 +01:00

Fixed linting errors for variable definitions

This commit is contained in:
Thomas Boerger 2016-11-29 14:05:26 +01:00
parent 42ec5ce740
commit 6dd2c3b2db
No known key found for this signature in database
GPG key ID: 5A388F55283960B6
2 changed files with 2 additions and 2 deletions

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})
}

View file

@ -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)