Skip to content

Commit

Permalink
Remove duplicate aws-sdk-go/$service import (#102)
Browse files Browse the repository at this point in the history
Remove duplicate `aws-sdk-go/$service` import. It is already imported in L14 with the alias `svcsdk`

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
  • Loading branch information
a-hilaly authored Jun 23, 2021
1 parent 2e9866d commit ece6139
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions templates/pkg/resource/sdk.go.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

svcapitypes "github.com/aws-controllers-k8s/{{.ServiceIDClean }}-controller/apis/{{ .APIVersion }}"
svcsdkapi "github.com/aws/aws-sdk-go/service/{{ .ServiceIDClean }}"
)

// Hack to avoid import errors during build...
Expand All @@ -28,7 +27,6 @@ var (
_ = &svcapitypes.{{ .CRD.Names.Camel }}{}
_ = ackv1alpha1.AWSAccountID("")
_ = &ackerr.NotFound
_ = svcsdkapi.New
)

// sdkFind returns SDK-specific information about a supplied resource
Expand Down

0 comments on commit ece6139

Please sign in to comment.