mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	go vet and fix #1890
This commit is contained in:
		@@ -38,7 +38,6 @@ func RenderIssueLinks(oldCommits *list.List, repoLink string) *list.List {
 | 
			
		||||
	newCommits := list.New()
 | 
			
		||||
	for e := oldCommits.Front(); e != nil; e = e.Next() {
 | 
			
		||||
		c := e.Value.(*git.Commit)
 | 
			
		||||
		c.CommitMessage = c.CommitMessage
 | 
			
		||||
		newCommits.PushBack(c)
 | 
			
		||||
	}
 | 
			
		||||
	return newCommits
 | 
			
		||||
@@ -196,7 +195,6 @@ func Diff(ctx *middleware.Context) {
 | 
			
		||||
	commitID := ctx.Repo.CommitID
 | 
			
		||||
 | 
			
		||||
	commit := ctx.Repo.Commit
 | 
			
		||||
	commit.CommitMessage = commit.CommitMessage
 | 
			
		||||
	diff, err := models.GetDiffCommit(models.RepoPath(userName, repoName),
 | 
			
		||||
		commitID, setting.Git.MaxGitDiffLines)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user