Skip to content

Commit a9f779e

Browse files
author
kamil cybulski
committed
fix(server): remove unnecessary check for empty plan in params validation
1 parent 4e6a428 commit a9f779e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/commands/server/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ func (s *createCommand) ExecuteWithoutArguments(exec commands.Executor) (output.
306306
return nil, fmt.Errorf("both --cores and --memory must be defined for custom plans")
307307
}
308308

309-
if s.params.Plan != "" && s.params.Plan != customPlan {
309+
if s.params.Plan != customPlan {
310310
return nil, fmt.Errorf("--plan needs to be 'custom' when --cores and --memory are specified")
311311
}
312312
}

0 commit comments

Comments
 (0)