Cleanup impossible code path

This commit is contained in:
Sam Coe 2021-01-21 14:45:06 -08:00
parent 7cc2975a98
commit 11e873c669
No known key found for this signature in database
GPG key ID: 8E322C20F811D086

View file

@ -260,9 +260,6 @@ func mergeMethodSurvey(baseRepo *api.Repository) (api.PullRequestMergeMethod, er
opt := mergeOption{title: "Squash and merge", method: api.PullRequestMergeMethodSquash}
mergeOpts = append(mergeOpts, opt)
}
if len(mergeOpts) == 0 {
return 0, fmt.Errorf("The repo %s has no merge options enabled", ghrepo.FullName(baseRepo))
}
var surveyOpts []string
for _, v := range mergeOpts {