refactor: remove cleanZoneID function

main
sundowndev 2021-07-05 17:43:23 +02:00
parent 83d360ec99
commit 0460878238
1 changed files with 1 additions and 5 deletions

View File

@ -40,7 +40,7 @@ func (e *Route53ZoneSupplier) Enumerate() ([]resource.Resource, error) {
results,
e.factory.CreateAbstractResource(
string(e.SupportedType()),
cleanZoneID(*hostedZone.Id),
strings.TrimPrefix(*hostedZone.Id, "/hostedzone/"),
map[string]interface{}{},
),
)
@ -48,7 +48,3 @@ func (e *Route53ZoneSupplier) Enumerate() ([]resource.Resource, error) {
return results, err
}
func cleanZoneID(ID string) string {
return strings.TrimPrefix(ID, "/hostedzone/")
}