Skip to content

Commit d20499f

Browse files
Update internal/cmd/argus/instance/update/update.go
Co-authored-by: João Palet <joao.palet@outlook.com>
1 parent d45034f commit d20499f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

internal/cmd/argus/instance/update/update.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,8 @@ func parseInput(cmd *cobra.Command, inputArgs []string) (*inputModel, error) {
144144
}
145145
}
146146

147-
if planId == nil && planName == "" {
148-
if instanceName == nil {
149-
return nil, &cliErr.EmptyUpdateError{}
150-
}
147+
if planId == nil && planName == "" && instanceName == nil {
148+
return nil, &cliErr.EmptyUpdateError{}
151149
}
152150

153151
return &inputModel{

0 commit comments

Comments
 (0)