diff options
author | 2019-02-17 03:32:28 -0500 | |
---|---|---|
committer | 2019-02-17 08:32:28 +0000 | |
commit | d42d80c4f6750a98d3cc779a593160ff43dbf655 (patch) | |
tree | 948137a8defce62db5d92d67d118ffef07561a92 /plugin/kubernetes/xfr_test.go | |
parent | 1fe66443a7103963c410a3df09a818f7d14d0519 (diff) | |
download | coredns-d42d80c4f6750a98d3cc779a593160ff43dbf655.tar.gz coredns-d42d80c4f6750a98d3cc779a593160ff43dbf655.tar.zst coredns-d42d80c4f6750a98d3cc779a593160ff43dbf655.zip |
cleanup by fmt and remove redundant type declarations (#2563)
Diffstat (limited to 'plugin/kubernetes/xfr_test.go')
-rw-r--r-- | plugin/kubernetes/xfr_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/kubernetes/xfr_test.go b/plugin/kubernetes/xfr_test.go index 1fb3e0b43..4336194bd 100644 --- a/plugin/kubernetes/xfr_test.go +++ b/plugin/kubernetes/xfr_test.go @@ -15,7 +15,7 @@ func TestKubernetesXFR(t *testing.T) { k := New([]string{"cluster.local."}) k.APIConn = &APIConnServeTest{} k.TransferTo = []string{"10.240.0.1:53"} - k.Namespaces = map[string]struct{}{"testns": struct{}{}} + k.Namespaces = map[string]struct{}{"testns": {}} ctx := context.TODO() w := dnstest.NewMultiRecorder(&test.ResponseWriter{}) @@ -103,7 +103,7 @@ func TestKubernetesXFRNotAllowed(t *testing.T) { k := New([]string{"cluster.local."}) k.APIConn = &APIConnServeTest{} k.TransferTo = []string{"1.2.3.4:53"} - k.Namespaces = map[string]struct{}{"testns": struct{}{}} + k.Namespaces = map[string]struct{}{"testns": {}} ctx := context.TODO() w := dnstest.NewMultiRecorder(&test.ResponseWriter{}) |