ソースを参照

Fixed linting errors for variable definitions

tags/v1.0.0
Thomas Boerger 7年前
コミット
6dd2c3b2db
コミッターのメールアドレスに関連付けられたアカウントが存在しません
2個のファイルの変更2行の追加2行の削除
  1. 1
    1
      models/repo_collaboration.go
  2. 1
    1
      models/update.go

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


+ 1
- 1
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)

読み込み中…
キャンセル
保存