diff options
author | 2018-01-09 22:29:19 +0000 | |
---|---|---|
committer | 2018-01-09 22:29:19 +0000 | |
commit | cced1a4c12b3a6646e186d14ce89bf4f60a632f8 (patch) | |
tree | f18a89907637ffdb4d8064da2c8729b0314c7159 /plugin/pkg/fall/fall_test.go | |
parent | a19ea63d3a719a98104c74a776afd71d5d94490a (diff) | |
download | coredns-cced1a4c12b3a6646e186d14ce89bf4f60a632f8.tar.gz coredns-cced1a4c12b3a6646e186d14ce89bf4f60a632f8.tar.zst coredns-cced1a4c12b3a6646e186d14ce89bf4f60a632f8.zip |
pkg/fall: make Zero and Root vars not funcs (#1367)
These can be just vars. Think that was intended as well.
Diffstat (limited to 'plugin/pkg/fall/fall_test.go')
-rw-r--r-- | plugin/pkg/fall/fall_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/pkg/fall/fall_test.go b/plugin/pkg/fall/fall_test.go index 9988578f6..26cfbc2dc 100644 --- a/plugin/pkg/fall/fall_test.go +++ b/plugin/pkg/fall/fall_test.go @@ -23,7 +23,7 @@ func TestEqual(t *testing.T) { func TestZero(t *testing.T) { var f F - if !f.Equal(Zero()) { + if !f.Equal(Zero) { t.Errorf("F should be zero") } } @@ -31,7 +31,7 @@ func TestZero(t *testing.T) { func TestSetZonesFromArgs(t *testing.T) { var f F f.SetZonesFromArgs([]string{}) - if !f.Equal(Root()) { + if !f.Equal(Root) { t.Errorf("F should have the root zone") } |