* define types at api layer and remove cli import * check for null map * explicit ifs * remove nil services check
@@ -168,11 +168,6 @@ func parse(conf ParseConf) (*chart.Chart, map[string]interface{}, map[string]int
services = parsed.Services
}
- if services == nil {
- return nil, nil, nil, fmt.Errorf("missing services from porter yaml file")
- }
-
application := &Application{
Env: parsed.Env,
Services: services,
@@ -201,10 +201,6 @@ func apply(_ *types.GetAuthenticatedUserResponse, client *api.Client, _ []string
- return fmt.Errorf("missing services from porter yaml file")
app := &stack.Application{