Skip to content

Commit e3d899a

Browse files
committed
Fix lint
1 parent ffab745 commit e3d899a

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"
@@ -865,7 +864,7 @@ func (m *webhookNotifier) SyncPushCommits(ctx context.Context, pusher *user_mode
865864

866865
func (m *webhookNotifier) CreateCommitStatus(ctx context.Context, repo *repo_model.Repository, commit *repository.PushCommit, sender *user_model.User, status *git_model.CommitStatus) {
867866
apiSender := convert.ToUser(ctx, sender, nil)
868-
apiCommit, err := repo_module.ToAPIPayloadCommit(ctx, map[string]*user_model.User{}, repo.RepoPath(), repo.HTMLURL(), commit)
867+
apiCommit, err := repository.ToAPIPayloadCommit(ctx, map[string]*user_model.User{}, repo.RepoPath(), repo.HTMLURL(), commit)
869868
if err != nil {
870869
log.Error("commits.ToAPIPayloadCommits failed: %v", err)
871870
return

0 commit comments

Comments
 (0)