Skip to content

Commit 6061683

Browse files
committed
Fix duplicated notifier
1 parent 2537c8f commit 6061683

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

services/repository/commitstatus/commitstatus.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,7 @@ func CreateCommitStatus(ctx context.Context, repo *repo_model.Repository, creato
9797
return err
9898
}
9999

100-
pushCommit := repo_module.CommitToPushCommit(commit)
101-
102-
notify.CreateCommitStatus(ctx, repo, pushCommit, creator, status)
100+
notify.CreateCommitStatus(ctx, repo, repo_module.CommitToPushCommit(commit), creator, status)
103101

104102
defaultBranchCommit, err := gitRepo.GetBranchCommit(repo.DefaultBranch)
105103
if err != nil {
@@ -112,8 +110,6 @@ func CreateCommitStatus(ctx context.Context, repo *repo_model.Repository, creato
112110
}
113111
}
114112

115-
notify.CreateCommitStatus(ctx, repo, repo_module.CommitToPushCommit(commit), creator, status)
116-
117113
return nil
118114
}
119115

0 commit comments

Comments
 (0)