pkg/fall: make Zero and Root vars not funcs (#1367)

These can be just vars. Think that was intended as well.
This commit is contained in:
Miek Gieben 2018-01-09 22:29:19 +00:00 committed by GitHub
parent a19ea63d3a
commit cced1a4c12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 51 additions and 52 deletions

View file

@ -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")
}