refactor: remove cleanZoneID function
parent
83d360ec99
commit
0460878238
|
@ -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/")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue