Skip to content

Commit 1adb7a3

Browse files
authored
chore: make reviewable (#162)
- removes a redundant nil check to satisfy linter Signed-off-by: Artur Shad Nik <[email protected]>
1 parent de0dc2f commit 1adb7a3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/validators/dns/internal_dns_validator.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func formatDNSRecords(dnsResources []entity.DNSResource) map[string]map[string]v
8484
formattedRecords := make(map[string]map[string]v1alpha1.DNSRecord)
8585

8686
for _, r := range dnsResources {
87-
if r.ResourceRecords != nil && len(r.ResourceRecords) > 0 {
87+
if len(r.ResourceRecords) > 0 {
8888
fr := make(map[string]v1alpha1.DNSRecord, 0)
8989
for _, rr := range r.ResourceRecords {
9090
key := fmt.Sprint(rr.RRData, rr.RRType, rr.TTL)

0 commit comments

Comments
 (0)