File tree Expand file tree Collapse file tree 4 files changed +4
-8
lines changed
internal/cmd/beta/network Expand file tree Collapse file tree 4 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -98,8 +98,7 @@ func NewCmd(p *print.Printer) *cobra.Command {
98
98
if err != nil {
99
99
p .Debug (print .ErrorLevel , "get project name: %v" , err )
100
100
projectLabel = model .ProjectId
101
- }
102
- if projectLabel == "" {
101
+ } else if projectLabel == "" {
103
102
projectLabel = model .ProjectId
104
103
}
105
104
Original file line number Diff line number Diff line change @@ -60,8 +60,7 @@ func NewCmd(p *print.Printer) *cobra.Command {
60
60
if err != nil {
61
61
p .Debug (print .ErrorLevel , "get network name: %v" , err )
62
62
networkLabel = model .NetworkId
63
- }
64
- if networkLabel == "" {
63
+ } else if networkLabel == "" {
65
64
networkLabel = model .NetworkId
66
65
}
67
66
Original file line number Diff line number Diff line change @@ -75,8 +75,7 @@ func NewCmd(p *print.Printer) *cobra.Command {
75
75
if err != nil {
76
76
p .Debug (print .ErrorLevel , "get project name: %v" , err )
77
77
projectLabel = model .ProjectId
78
- }
79
- if projectLabel == "" {
78
+ } else if projectLabel == "" {
80
79
projectLabel = model .ProjectId
81
80
}
82
81
p .Info ("No networks found for project %q\n " , projectLabel )
Original file line number Diff line number Diff line change @@ -85,8 +85,7 @@ func NewCmd(p *print.Printer) *cobra.Command {
85
85
if err != nil {
86
86
p .Debug (print .ErrorLevel , "get network name: %v" , err )
87
87
networkLabel = model .NetworkId
88
- }
89
- if networkLabel == "" {
88
+ } else if networkLabel == "" {
90
89
networkLabel = model .NetworkId
91
90
}
92
91
You can’t perform that action at this time.
0 commit comments