diff options
author | 2020-01-17 16:47:45 +0100 | |
---|---|---|
committer | 2020-01-17 10:47:45 -0500 | |
commit | 5f159ca4649ebd125b4718d02367be10f402ed74 (patch) | |
tree | 978e7a8ea5cc0c55a4a55095c7be2e1bc8b0add2 /plugin | |
parent | c95faea6241de662f730d35c3368fc0fdb1ae1c0 (diff) | |
download | coredns-5f159ca4649ebd125b4718d02367be10f402ed74.tar.gz coredns-5f159ca4649ebd125b4718d02367be10f402ed74.tar.zst coredns-5f159ca4649ebd125b4718d02367be10f402ed74.zip |
gofmt -w -s **/*.go (#3603)
format and remove trailing white space; makes 'make presubmit' pass
again.
Signed-off-by: Miek Gieben <miek@miek.nl>
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/etcd/etcd.go | 2 | ||||
-rw-r--r-- | plugin/forward/forward.go | 2 | ||||
-rw-r--r-- | plugin/forward/setup.go | 2 | ||||
-rw-r--r-- | plugin/ready/ready.go | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/plugin/etcd/etcd.go b/plugin/etcd/etcd.go index d8e9e054e..5a497d57b 100644 --- a/plugin/etcd/etcd.go +++ b/plugin/etcd/etcd.go @@ -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 != "" diff --git a/plugin/forward/forward.go b/plugin/forward/forward.go index 897d9e7eb..6631b7bab 100644 --- a/plugin/forward/forward.go +++ b/plugin/forward/forward.go @@ -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" diff --git a/plugin/forward/setup.go b/plugin/forward/setup.go index 73c9cf943..fa35639f2 100644 --- a/plugin/forward/setup.go +++ b/plugin/forward/setup.go @@ -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" diff --git a/plugin/ready/ready.go b/plugin/ready/ready.go index 326d39955..a76a20084 100644 --- a/plugin/ready/ready.go +++ b/plugin/ready/ready.go @@ -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 ( |