Skip to content

Commit a441283

Browse files
committed
Fix lint
1 parent e9c9e87 commit a441283

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

services/webhook/notifier.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import (
1616
"code.gitea.io/gitea/modules/git"
1717
"code.gitea.io/gitea/modules/log"
1818
"code.gitea.io/gitea/modules/repository"
19-
repo_module "code.gitea.io/gitea/modules/repository"
2019
"code.gitea.io/gitea/modules/setting"
2120
api "code.gitea.io/gitea/modules/structs"
2221
webhook_module "code.gitea.io/gitea/modules/webhook"
@@ -855,7 +854,7 @@ func (m *webhookNotifier) SyncPushCommits(ctx context.Context, pusher *user_mode
855854

856855
func (m *webhookNotifier) CreateCommitStatus(ctx context.Context, repo *repo_model.Repository, commit *repository.PushCommit, sender *user_model.User, status *git_model.CommitStatus) {
857856
apiSender := convert.ToUser(ctx, sender, nil)
858-
apiCommit, err := repo_module.ToAPIPayloadCommit(ctx, map[string]*user_model.User{}, repo.RepoPath(), repo.HTMLURL(), commit)
857+
apiCommit, err := repository.ToAPIPayloadCommit(ctx, map[string]*user_model.User{}, repo.RepoPath(), repo.HTMLURL(), commit)
859858
if err != nil {
860859
log.Error("commits.ToAPIPayloadCommits failed: %v", err)
861860
return

0 commit comments

Comments
 (0)