mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 00:04:15 -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 != ""
|
||||
|
||||
@@ -12,8 +12,8 @@ import (
|
||||
|
||||
"github.com/coredns/coredns/plugin"
|
||||
"github.com/coredns/coredns/plugin/debug"
|
||||
"github.com/coredns/coredns/plugin/pkg/policy"
|
||||
clog "github.com/coredns/coredns/plugin/pkg/log"
|
||||
"github.com/coredns/coredns/plugin/pkg/policy"
|
||||
"github.com/coredns/coredns/request"
|
||||
|
||||
"github.com/miekg/dns"
|
||||
|
||||
@@ -8,8 +8,8 @@ import (
|
||||
"github.com/coredns/coredns/core/dnsserver"
|
||||
"github.com/coredns/coredns/plugin"
|
||||
"github.com/coredns/coredns/plugin/metrics"
|
||||
"github.com/coredns/coredns/plugin/pkg/policy"
|
||||
"github.com/coredns/coredns/plugin/pkg/parse"
|
||||
"github.com/coredns/coredns/plugin/pkg/policy"
|
||||
pkgtls "github.com/coredns/coredns/plugin/pkg/tls"
|
||||
"github.com/coredns/coredns/plugin/pkg/transport"
|
||||
|
||||
|
||||
@@ -11,8 +11,8 @@ import (
|
||||
"sync"
|
||||
|
||||
clog "github.com/coredns/coredns/plugin/pkg/log"
|
||||
"github.com/coredns/coredns/plugin/pkg/uniq"
|
||||
"github.com/coredns/coredns/plugin/pkg/reuseport"
|
||||
"github.com/coredns/coredns/plugin/pkg/uniq"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
Reference in New Issue
Block a user