Skip to content

Commit

Permalink
Fix golangci-lint error 'deadcode'.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewbankkit committed Jul 13, 2021
1 parent 7495f70 commit f83cb8b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions aws/resource_aws_securityhub_standards_subscription_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func testAccAWSSecurityHubStandardsSubscription_basic(t *testing.T) {
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, securityhub.EndpointsID),
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSSecurityHubAccountDestroy,
CheckDestroy: testAccCheckAWSSecurityHubStandardsSubscriptionDestroy,
Steps: []resource.TestStep{
{
Config: testAccAWSSecurityHubStandardsSubscriptionConfig_basic,
Expand All @@ -44,7 +44,7 @@ func testAccAWSSecurityHubStandardsSubscription_disappears(t *testing.T) {
PreCheck: func() { testAccPreCheck(t) },
ErrorCheck: testAccErrorCheck(t, securityhub.EndpointsID),
Providers: testAccProviders,
CheckDestroy: testAccCheckAWSSecurityHubAccountDestroy,
CheckDestroy: testAccCheckAWSSecurityHubStandardsSubscriptionDestroy,
Steps: []resource.TestStep{
{
Config: testAccAWSSecurityHubStandardsSubscriptionConfig_basic,
Expand Down Expand Up @@ -107,10 +107,6 @@ func testAccCheckAWSSecurityHubStandardsSubscriptionDestroy(s *terraform.State)
return nil
}

const testAccAWSSecurityHubStandardsSubscriptionConfig_empty = `
resource "aws_securityhub_account" "test" {}
`

const testAccAWSSecurityHubStandardsSubscriptionConfig_basic = `
resource "aws_securityhub_account" "test" {}
Expand Down

0 comments on commit f83cb8b

Please sign in to comment.