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

Commit 2709a6b

Browse files
committed
fix linter
1 parent 85ce5d6 commit 2709a6b

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

Diff for: ecs/awsResources.go

+8-5
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import (
3939

4040
// vpcSubNets classification
4141
type vpcSubNets struct {
42-
public []awsResource
42+
public []awsResource
4343
private []awsResource
4444
}
4545

@@ -325,7 +325,10 @@ func (b *ecsAPIService) ensureResources(resources *awsResources, project *types.
325325
if err != nil {
326326
return err
327327
}
328-
b.ensureLoadBalancer(resources, project, template)
328+
err = b.ensureLoadBalancer(resources, project, template)
329+
if err != nil {
330+
return err
331+
}
329332
return nil
330333
}
331334

@@ -461,9 +464,9 @@ func (b *ecsAPIService) ensureLoadBalancer(r *awsResources, project *types.Proje
461464
}
462465

463466
var publicSubNetIDs []string
464-
for _, subNetID := range r.subnetsIDs() {
465-
publicSubNetIDs = append(publicSubNetIDs, subNetID)
466-
}
467+
for _, subNetID := range r.subnetsIDs() {
468+
publicSubNetIDs = append(publicSubNetIDs, subNetID)
469+
}
467470

468471
template.Resources["LoadBalancer"] = &elasticloadbalancingv2.LoadBalancer{
469472
Scheme: elbv2.LoadBalancerSchemeEnumInternetFacing,

Diff for: ecs/sdk.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1068,7 +1068,7 @@ func (s sdk) ResolveLoadBalancer(ctx context.Context, nameOrArn string) (awsReso
10681068
it := lbs.LoadBalancers[0]
10691069
var subNets vpcSubNets
10701070
for _, az := range it.AvailabilityZones {
1071-
isPublic, err := s.IsPublicSubnet(ctx,aws.StringValue(az.SubnetId));
1071+
isPublic, err := s.IsPublicSubnet(ctx, aws.StringValue(az.SubnetId))
10721072
if err != nil {
10731073
return nil, "", "", subNets, err
10741074
}

0 commit comments

Comments
 (0)