refactor: revert method rename

isDefaultRecord in pkg/middlewares/route53_record.go
main
sundowndev 2021-04-01 18:15:37 +02:00
parent e102fd1cdd
commit cc98c10216
1 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ func (m Route53DefaultZoneRecordSanitizer) Execute(remoteResources, resourcesFro
record, _ := remoteResource.(*aws.AwsRoute53Record)
if !isDefaultRoute53Record(record) {
if !isDefaultRecord(record) {
newRemoteResources = append(newRemoteResources, remoteResource)
continue
}
@ -61,6 +61,6 @@ func (m Route53DefaultZoneRecordSanitizer) Execute(remoteResources, resourcesFro
}
// Return true if the record is considered as default one added by aws
func isDefaultRoute53Record(record *aws.AwsRoute53Record) bool {
func isDefaultRecord(record *aws.AwsRoute53Record) bool {
return *record.Type == "NS" || *record.Type == "SOA"
}