Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit a19e9b2

Browse files
committed
fix return
Signed-off-by: Pascal Euhus <[email protected]>
1 parent 1f37287 commit a19e9b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ecs/awsResources.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -423,13 +423,13 @@ func (b *ecsAPIService) ensureVolumes(r *awsResources, project *types.Project, t
423423

424424
func (b *ecsAPIService) ensureLoadBalancer(r *awsResources, project *types.Project, template *cloudformation.Template) error {
425425
if r.loadBalancer != nil {
426-
return
426+
return nil
427427
}
428428
if allServices(project.Services, func(it types.ServiceConfig) bool {
429429
return len(it.Ports) == 0
430430
}) {
431431
logrus.Debug("Application does not expose any public port, so no need for a LoadBalancer")
432-
return
432+
return nil
433433
}
434434

435435
balancerType := getRequiredLoadBalancerType(project)

0 commit comments

Comments
 (0)