Skip to content

Commit 80f0d05

Browse files
committed
Fix lint and checks
1 parent 348aaa4 commit 80f0d05

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

services/pull/comment.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ type CachedCommit struct {
105105
TrustStatus string
106106
}
107107

108-
func convertCachedCommitsToGitCommits(cachedCommits []CachedCommit, repo *repo_model.Repository) []*asymkey_model.SignCommit {
108+
func convertCachedCommitsToGitCommits(cachedCommits []CachedCommit) []*asymkey_model.SignCommit {
109109
var gitCommits []*asymkey_model.SignCommit
110110
for _, cc := range cachedCommits {
111111
objectID := git.MustIDFromString(cc.CommitID)
@@ -280,7 +280,7 @@ func LoadCommentPushCommits(ctx context.Context, c *issues_model.Comment) error
280280
defer closer.Close()
281281

282282
if data.CachedCommits != nil {
283-
convertedCommits := convertCachedCommitsToGitCommits(data.CachedCommits, c.Issue.Repo)
283+
convertedCommits := convertCachedCommitsToGitCommits(data.CachedCommits)
284284
c.Commits, err = git_service.ParseCommitsWithStatus(ctx, convertedCommits, c.Issue.Repo)
285285
} else {
286286
c.Commits, err = git_service.ConvertFromGitCommit(ctx, gitRepo.GetCommitsFromIDs(data.CommitIDs), c.Issue.Repo)

tests/integration/pull_comment_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import (
1313

1414
issues_model "code.gitea.io/gitea/models/issues"
1515
"code.gitea.io/gitea/models/unittest"
16-
1716
pull_service "code.gitea.io/gitea/services/pull"
17+
1818
"github.com/stretchr/testify/assert"
1919
"github.com/stretchr/testify/require"
2020
)

0 commit comments

Comments
 (0)