Remove redundant check of Node.Meta size

pull/3513/head
Patrick Sodré 7 years ago committed by Frank Schroeder
parent 53e812e759
commit afb0c92334
No known key found for this signature in database
GPG Key ID: 4D65C6EAEC87DECD

@ -610,7 +610,7 @@ func (d *DNSServer) formatNodeRecord(node *structs.Node, addr, qName string, qTy
}
}
if node != nil && len(node.Meta) > 0 && (qType == dns.TypeANY || qType == dns.TypeTXT) {
if node != nil && (qType == dns.TypeANY || qType == dns.TypeTXT) {
for _, txt := range d.formatTxtRecords(node.Meta) {
records = append(records, &dns.TXT{
Hdr: dns.RR_Header{

Loading…
Cancel
Save