Skip to content

Commit b105cb3

Browse files
Merge pull request #1999 from petr-muller/ocpbugs-30080-operators-cleanup
NO-JIRA: `adm release new`: simplify no operator error condition
2 parents f2c6ae4 + 2f3d849 commit b105cb3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pkg/cli/admin/release/new.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -782,10 +782,7 @@ func (o *NewOptions) Run(ctx context.Context) error {
782782
return err
783783
}
784784

785-
sort.Strings(operators)
786-
switch {
787-
case operators == nil:
788-
case len(operators) == 0:
785+
if len(operators) == 0 {
789786
fmt.Fprintf(o.ErrOut, "warning: No operator metadata was found, no operators will be part of the release.\n")
790787
}
791788

0 commit comments

Comments
 (0)