Skip to content

Commit 9e18bbe

Browse files
committed
Satisfy linter
I would have preferred to leave this function in for future use, but `make lint` wants it gone, so it's gone.
1 parent 4f42304 commit 9e18bbe

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

services/pull/pull.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -778,12 +778,6 @@ func GetIssuesAllCommitStatus(ctx context.Context, issues models.IssueList) (map
778778
return res, lastRes, nil
779779
}
780780

781-
// getLastCommitStatus get pr's last commit status. PR's last commit status is the head commit id's last commit status
782-
func getLastCommitStatus(gitRepo *git.Repository, pr *models.PullRequest) (status *models.CommitStatus, err error) {
783-
_, lastStatus, err := getAllCommitStatus(gitRepo, pr)
784-
return lastStatus, err
785-
}
786-
787781
// getAllCommitStatus get pr's commit statuses.
788782
func getAllCommitStatus(gitRepo *git.Repository, pr *models.PullRequest) (statuses []*models.CommitStatus, lastStatus *models.CommitStatus, err error) {
789783
sha, shaErr := gitRepo.GetRefCommitID(pr.GetGitRefName())

0 commit comments

Comments
 (0)