From 55cd300f4c9a451d73e2cf6a6fc27d339f5b4599 Mon Sep 17 00:00:00 2001 From: grumbulon Date: Thu, 15 Dec 2022 19:23:22 -0500 Subject: [PATCH] lint --- pkg/query/util.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/pkg/query/util.go b/pkg/query/util.go index c7dfe85..393fae6 100644 --- a/pkg/query/util.go +++ b/pkg/query/util.go @@ -19,11 +19,6 @@ var ( ) func (message *Message) displayQuestion(msg *dns.Msg, opts *util.Options, opt *dns.OPT) error { - var ( - name string - err error - ) - for _, question := range msg.Question { if opts.Display.UcodeTranslate { name, err = idna.ToUnicode(question.Name) @@ -82,7 +77,6 @@ func (message *Message) displayAnswers(msg *dns.Msg, opts *util.Options, opt *dn } func (message *Message) displayAuthority(msg *dns.Msg, opts *util.Options, opt *dns.OPT) error { - for _, ns := range msg.Ns { temp := strings.Split(ns.String(), "\t") @@ -120,7 +114,6 @@ func (message *Message) displayAuthority(msg *dns.Msg, opts *util.Options, opt * } func (message *Message) displayAdditional(msg *dns.Msg, opts *util.Options, opt *dns.OPT) error { - for _, additional := range msg.Extra { if additional.Header().Rrtype == dns.StringToType["OPT"] { continue