Skip to content

Commit

Permalink
chore(resources/acmpca): fix golangci-lint violations
Browse files Browse the repository at this point in the history
  • Loading branch information
ekristen committed Feb 23, 2024
1 parent 8d7216c commit 00bd07e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion resources/acmpca-certificateauthorities.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ type ACMPCACertificateAuthority struct {
}

func (f *ACMPCACertificateAuthority) Remove(_ context.Context) error {

_, err := f.svc.DeleteCertificateAuthority(&acmpca.DeleteCertificateAuthorityInput{
CertificateAuthorityArn: f.ARN,
})
Expand Down
3 changes: 0 additions & 3 deletions resources/acmpca-certificateauthoritystates.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ type ACMPCACertificateAuthorityState struct {
}

func (f *ACMPCACertificateAuthorityState) Remove(_ context.Context) error {

_, err := f.svc.UpdateCertificateAuthority(&acmpca.UpdateCertificateAuthorityInput{
CertificateAuthorityArn: f.ARN,
Status: aws.String("DISABLED"),
Expand All @@ -102,7 +101,6 @@ func (f *ACMPCACertificateAuthorityState) String() string {
}

func (f *ACMPCACertificateAuthorityState) Filter() error {

switch *f.status {
case "CREATING":
return fmt.Errorf("available for deletion")
Expand All @@ -115,7 +113,6 @@ func (f *ACMPCACertificateAuthorityState) Filter() error {
default:
return nil
}

}

func (f *ACMPCACertificateAuthorityState) Properties() types.Properties {
Expand Down

0 comments on commit 00bd07e

Please sign in to comment.