Skip to content

Commit 11e873c

Browse files
committed
Cleanup impossible code path
1 parent 7cc2975 commit 11e873c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pkg/cmd/pr/merge/merge.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,6 @@ func mergeMethodSurvey(baseRepo *api.Repository) (api.PullRequestMergeMethod, er
260260
opt := mergeOption{title: "Squash and merge", method: api.PullRequestMergeMethodSquash}
261261
mergeOpts = append(mergeOpts, opt)
262262
}
263-
if len(mergeOpts) == 0 {
264-
return 0, fmt.Errorf("The repo %s has no merge options enabled", ghrepo.FullName(baseRepo))
265-
}
266263

267264
var surveyOpts []string
268265
for _, v := range mergeOpts {

0 commit comments

Comments
 (0)