Skip to content

Commit 593fd4b

Browse files
committedSep 13, 2022
Fix golangci-lint 'deadcode'.
1 parent b6507a5 commit 593fd4b

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed
 

‎internal/service/autoscaling/launch_configuration_test.go

-25
Original file line numberDiff line numberDiff line change
@@ -838,31 +838,6 @@ func testAccCheckInstanceHasPublicIPAddress(group *autoscaling.Group, idx int, e
838838
}
839839
}
840840

841-
func testAccCheckSecurityGroupExists(n string, v *ec2.SecurityGroup) resource.TestCheckFunc {
842-
return func(s *terraform.State) error {
843-
rs, ok := s.RootModule().Resources[n]
844-
if !ok {
845-
return fmt.Errorf("Not found: %s", n)
846-
}
847-
848-
if rs.Primary.ID == "" {
849-
return fmt.Errorf("No EC2 Security Group ID is set")
850-
}
851-
852-
conn := acctest.Provider.Meta().(*conns.AWSClient).EC2Conn
853-
854-
output, err := tfec2.FindSecurityGroupByID(conn, rs.Primary.ID)
855-
856-
if err != nil {
857-
return err
858-
}
859-
860-
*v = *output
861-
862-
return nil
863-
}
864-
}
865-
866841
func testAccLaunchConfigurationConfig_basic(rName string) string {
867842
return acctest.ConfigCompose(acctest.ConfigLatestAmazonLinuxHVMEBSAMI(), fmt.Sprintf(`
868843
resource "aws_launch_configuration" "test" {

0 commit comments

Comments
 (0)