From 3a13dce3f02bf7318f1f1b654da8782d8a5f823e Mon Sep 17 00:00:00 2001 From: TwinProduction Date: Thu, 19 Nov 2020 21:10:59 -0500 Subject: [PATCH] Minor update --- core/dns.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/dns.go b/core/dns.go index 6c07ce73..444c8558 100644 --- a/core/dns.go +++ b/core/dns.go @@ -10,7 +10,7 @@ import ( var ( // ErrDNSWithNoQueryName is the error with which gatus will panic if a dns is configured without query name - ErrDNSWithNoQueryName = errors.New("you must specify query name for DNS") + ErrDNSWithNoQueryName = errors.New("you must specify a query name for DNS") // ErrDNSWithInvalidQueryType is the error with which gatus will panic if a dns is configured with invalid query type ErrDNSWithInvalidQueryType = errors.New("invalid query type") ) @@ -30,7 +30,6 @@ func (d *DNS) validateAndSetDefault() { if len(d.QueryName) == 0 { panic(ErrDNSWithNoQueryName) } - if !strings.HasSuffix(d.QueryName, ".") { d.QueryName += "." }