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.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.go')
-rw-r--r-- | plugin/pkg/fall/fall.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/pkg/fall/fall.go b/plugin/pkg/fall/fall.go index adecc4c89..c8cdc6ff6 100644 --- a/plugin/pkg/fall/fall.go +++ b/plugin/pkg/fall/fall.go @@ -28,7 +28,7 @@ func (f *F) setZones(zones []string) { // SetZonesFromArgs sets zones in f to the passed value or to "." if the slice is empty. func (f *F) SetZonesFromArgs(zones []string) { if len(zones) == 0 { - f.setZones(Root().Zones) + f.setZones(Root.Zones) return } f.setZones(zones) @@ -50,9 +50,9 @@ func (f F) Equal(g F) bool { // Zero returns a zero valued F. var Zero = func() F { return F{[]string{}} -} +}() // Root returns F set to only ".". var Root = func() F { return F{[]string{"."}} -} +}() |