From 86a9b3981e33cdfae2dada259080a64f0f58a324 Mon Sep 17 00:00:00 2001 From: Shreyas Date: Mon, 13 Jun 2022 15:15:30 +0530 Subject: [PATCH] Removing unnecessary Config allocation --- pkg/mapper/iac-providers/cft/config/route-table-association.go | 1 - pkg/mapper/iac-providers/cft/config/route.go | 1 - 2 files changed, 2 deletions(-) diff --git a/pkg/mapper/iac-providers/cft/config/route-table-association.go b/pkg/mapper/iac-providers/cft/config/route-table-association.go index 0397ec599..51617a355 100644 --- a/pkg/mapper/iac-providers/cft/config/route-table-association.go +++ b/pkg/mapper/iac-providers/cft/config/route-table-association.go @@ -30,7 +30,6 @@ type RouteTableAssociationConfig struct { // GetRouteTableAssociationConfig returns config for aws_route_table_association func GetRouteTableAssociationConfig(e *ec2.SubnetRouteTableAssociation) []AWSResourceConfig { cf := RouteTableAssociationConfig{ - Config: Config{}, RouteTableID: e.RouteTableId, SubnetID: e.SubnetId, } diff --git a/pkg/mapper/iac-providers/cft/config/route.go b/pkg/mapper/iac-providers/cft/config/route.go index 915e74b4a..e81ca676e 100644 --- a/pkg/mapper/iac-providers/cft/config/route.go +++ b/pkg/mapper/iac-providers/cft/config/route.go @@ -41,7 +41,6 @@ type RouteConfig struct { // GetRouteConfig returns config for aws_route func GetRouteConfig(e *ec2.Route) []AWSResourceConfig { cf := RouteConfig{ - Config: Config{}, CarrierGatewayID: e.CarrierGatewayId, DestinationCidrBlock: e.DestinationCidrBlock, DestinationIpv6CidrBlock: e.DestinationIpv6CidrBlock,