Fix go fmt, go lint, and go vet issues (#494)

This fix fixes several `go fmt`, `go lint`, and `go vet` issues,
to make goreportcard happy:

https://goreportcard.com/report/github.com/miekg/coredns

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
Yong Tang
2017-01-29 12:06:26 -08:00
committed by Miek Gieben
parent bc301be5ee
commit 738067a3c7
8 changed files with 38 additions and 32 deletions

View File

@@ -38,7 +38,7 @@ func setup(c *caddy.Controller) error {
func traceParse(c *caddy.Controller) (*Trace, error) {
var (
tr = &Trace{Endpoint: defEP, EndpointType: defEpType}
tr = &Trace{Endpoint: defEP, EndpointType: defEpType}
err error
)
@@ -82,6 +82,6 @@ func normalizeEndpoint(epType, ep string) (string, error) {
var traceOnce sync.Once
const (
defEP = "localhost:9411"
defEP = "localhost:9411"
defEpType = "zipkin"
)