Skip to content

Commit 976737c

Browse files
committed
useless code
1 parent f193f61 commit 976737c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

services/pull/pull.go

-3
Original file line numberDiff line numberDiff line change
@@ -654,9 +654,6 @@ func GetLastCommitStatus(pr *models.PullRequest) (status *models.CommitStatus, e
654654

655655
compareInfo, err := gitRepo.GetCompareInfo(pr.BaseRepo.RepoPath(), pr.MergeBase, pr.GetGitRefName())
656656
if err != nil {
657-
if strings.Contains(err.Error(), "fatal: Not a valid object name") || strings.Contains(err.Error(), "unknown revision or path not in the working tree") {
658-
return nil, err
659-
}
660657
return nil, err
661658
}
662659

0 commit comments

Comments
 (0)