mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
gofmt -w -s **/*.go (#3603)
format and remove trailing white space; makes 'make presubmit' pass again. Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
committed by
Chris O'Haver
parent
c95faea624
commit
5f159ca464
@@ -178,7 +178,7 @@ func (e *Etcd) TTL(kv *mvccpb.KeyValue, serv *msg.Service) uint32 {
|
||||
|
||||
// shouldInclude returns true if the service should be included in a list of records, given the qType. For all the
|
||||
// currently supported lookup types, the only one to allow for an empty Host field in the service are TXT records
|
||||
// which resolve directly. If a TXT record is being resolved by CNAME, then we expect the Host field to have a
|
||||
// which resolve directly. If a TXT record is being resolved by CNAME, then we expect the Host field to have a
|
||||
// value while the TXT field will be empty.
|
||||
func shouldInclude(serv *msg.Service, qType uint16) bool {
|
||||
return (qType == dns.TypeTXT && serv.Text != "") || serv.Host != ""
|
||||
|
||||
Reference in New Issue
Block a user