File tree Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -56,8 +56,7 @@ func NewCmd(p *print.Printer) *cobra.Command {
5656 if err != nil {
5757 p .Debug (print .ErrorLevel , "get image name: %v" , err )
5858 imageName = model .ImageId
59- }
60- if imageName == "" {
59+ } else if imageName == "" {
6160 imageName = model .ImageId
6261 }
6362
Original file line number Diff line number Diff line change @@ -68,8 +68,7 @@ func NewCmd(p *print.Printer) *cobra.Command {
6868 if err != nil {
6969 p .Debug (print .ErrorLevel , "get project name: %v" , err )
7070 projectLabel = model .ProjectId
71- }
72- if projectLabel == "" {
71+ } else if projectLabel == "" {
7372 projectLabel = model .ProjectId
7473 }
7574
Original file line number Diff line number Diff line change @@ -134,8 +134,7 @@ func NewCmd(p *print.Printer) *cobra.Command {
134134 if err != nil {
135135 p .Debug (print .WarningLevel , "cannot retrieve image name: %v" , err )
136136 imageLabel = model .Id
137- }
138- if imageLabel == "" {
137+ } else if imageLabel == "" {
139138 imageLabel = model .Id
140139 }
141140
You can’t perform that action at this time.
0 commit comments