diff options
author | 2017-01-29 12:06:26 -0800 | |
---|---|---|
committer | 2017-01-29 20:06:26 +0000 | |
commit | 738067a3c7a5ec15690364c0f5ba97c884195cd5 (patch) | |
tree | 7fb15ac9b4d2cc9a0f419caf481cb83da9eb483e /middleware/pkg/tls/tls_test.go | |
parent | bc301be5ee5841efdddd64b3f3661053c753ffac (diff) | |
download | coredns-738067a3c7a5ec15690364c0f5ba97c884195cd5.tar.gz coredns-738067a3c7a5ec15690364c0f5ba97c884195cd5.tar.zst coredns-738067a3c7a5ec15690364c0f5ba97c884195cd5.zip |
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>
Diffstat (limited to 'middleware/pkg/tls/tls_test.go')
-rw-r--r-- | middleware/pkg/tls/tls_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/middleware/pkg/tls/tls_test.go b/middleware/pkg/tls/tls_test.go index fb8d6247f..b6ef220b7 100644 --- a/middleware/pkg/tls/tls_test.go +++ b/middleware/pkg/tls/tls_test.go @@ -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) |