From 323a99b6523daf0c27675137b38a9092050624d1 Mon Sep 17 00:00:00 2001 From: grumbulon Date: Fri, 16 Sep 2022 19:47:03 -0400 Subject: [PATCH] wrapcheck fix --- pkg/query/query.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/pkg/query/query.go b/pkg/query/query.go index c048130..e1fc132 100644 --- a/pkg/query/query.go +++ b/pkg/query/query.go @@ -12,11 +12,6 @@ import ( "github.com/miekg/dns" ) -const ( - tcp = "tcp" - udp = "udp" -) - // CreateQuery creates a DNS query from the options given. // It sets query flags and EDNS flags from the respective options. func CreateQuery(opts util.Options) (util.Response, error) { @@ -140,7 +135,7 @@ func CreateQuery(opts util.Options) (util.Response, error) { resolver, err := resolvers.LoadResolver(opts) if err != nil { - return util.Response{}, err + return util.Response{}, fmt.Errorf("unable to load resolvers: %v", err) } opts.Logger.Info("Query successfully loaded")