diff --git a/providers/exoscale/auditrecords.go b/providers/exoscale/auditrecords.go index c68f7b910f..424734a90e 100644 --- a/providers/exoscale/auditrecords.go +++ b/providers/exoscale/auditrecords.go @@ -10,21 +10,21 @@ import ( // AuditRecords returns a list of errors corresponding to the records that aren't supported by this provider. // If all records are supported, an empty list is returned. func AuditRecords(records models.Records) []error { - auditor := rejectif.Auditor{} + a := rejectif.Auditor{} - auditor.Add("CAA", rejectif.CaaTargetContainsWhitespace) // Last verified 2022-07-11 + a.Add("CAA", rejectif.CaaTargetContainsWhitespace) // Last verified 2022-07-11 - auditor.Add("MX", rejectif.MxNull) // Last verified 2022-07-11 + a.Add("MX", rejectif.MxNull) // Last verified 2022-07-11 - auditor.Add("PTR", func(rc *models.RecordConfig) error { + a.Add("PTR", func(rc *models.RecordConfig) error { return errors.New("PTR records are not supported by the Exoscale provider") }) - auditor.Add("SRV", rejectif.SrvHasNullTarget) // Last verified 2020-12-28 + a.Add("SRV", rejectif.SrvHasNullTarget) // Last verified 2020-12-28 - auditor.Add("TXT", rejectif.TxtHasUnpairedBackslash) // Last verified 2026-05-04 - auditor.Add("TXT", rejectif.TxtHasDoubleQuotes) // Last verified 2026-05-04 - auditor.Add("TXT", rejectif.TxtIsEmpty) // Last verified 2026-05-04 + a.Add("TXT", rejectif.TxtHasUnpairedBackslash) // Last verified 2026-05-04 + a.Add("TXT", rejectif.TxtHasDoubleQuotes) // Last verified 2026-05-04 + a.Add("TXT", rejectif.TxtIsEmpty) // Last verified 2026-05-04 - return auditor.Audit(records) + return a.Audit(records) } diff --git a/providers/realtimeregister/auditrecords.go b/providers/realtimeregister/auditrecords.go index 8c144c60ee..494fa87d36 100644 --- a/providers/realtimeregister/auditrecords.go +++ b/providers/realtimeregister/auditrecords.go @@ -9,11 +9,11 @@ import ( // that aren't supported by this provider. If all records are // supported, an empty list is returned. func AuditRecords(records models.Records) []error { - auditor := rejectif.Auditor{} + a := rejectif.Auditor{} - auditor.Add("TXT", rejectif.TxtHasTrailingSpace) // Last verified 2024-01-03 + a.Add("TXT", rejectif.TxtHasTrailingSpace) // Last verified 2024-01-03 - auditor.Add("TXT", rejectif.TxtIsEmpty) // Last verified 2024-01-03 + a.Add("TXT", rejectif.TxtIsEmpty) // Last verified 2024-01-03 - return auditor.Audit(records) + return a.Audit(records) }