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

@ -1,8 +1,8 @@
package tls
import (
"testing"
"path/filepath"
"path/filepath"
"testing"
"github.com/miekg/coredns/middleware/test"
)
@ -57,7 +57,7 @@ func TestNewTLSConfigFromArgs(t *testing.T) {
t.Error("RootCAs should not be nil when one arg passed")
}
c, err = NewTLSConfigFromArgs(cert,key)
c, err = NewTLSConfigFromArgs(cert, key)
if err != nil {
t.Errorf("Failed to create TLSConfig: %s", err)
}
@ -67,7 +67,7 @@ func TestNewTLSConfigFromArgs(t *testing.T) {
if len(c.Certificates) != 1 {
t.Error("Certificates should have a single entry when two args passed")
}
args := []string{cert,key,ca}
args := []string{cert, key, ca}
c, err = NewTLSConfigFromArgs(args...)
if err != nil {
t.Errorf("Failed to create TLSConfig: %s", err)