From ece6139d2cf7f72a178268c06b6a638f56858311 Mon Sep 17 00:00:00 2001 From: Amine Date: Wed, 23 Jun 2021 19:33:40 +0200 Subject: [PATCH] Remove duplicate `aws-sdk-go/$service` import (#102) 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. --- templates/pkg/resource/sdk.go.tpl | 2 -- 1 file changed, 2 deletions(-) diff --git a/templates/pkg/resource/sdk.go.tpl b/templates/pkg/resource/sdk.go.tpl index 28bbc60d..7bee7a2f 100644 --- a/templates/pkg/resource/sdk.go.tpl +++ b/templates/pkg/resource/sdk.go.tpl @@ -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... @@ -28,7 +27,6 @@ var ( _ = &svcapitypes.{{ .CRD.Names.Camel }}{} _ = ackv1alpha1.AWSAccountID("") _ = &ackerr.NotFound - _ = svcsdkapi.New ) // sdkFind returns SDK-specific information about a supplied resource