From 3f329eb1721a0bdd57bc60781fa57677684299d3 Mon Sep 17 00:00:00 2001 From: Janne Enberg Date: Fri, 22 Nov 2019 20:16:29 +0200 Subject: [PATCH] Improvement based on golangci-lint --- shared/report.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/shared/report.go b/shared/report.go index 0914410..4b86c0e 100644 --- a/shared/report.go +++ b/shared/report.go @@ -72,7 +72,6 @@ func ReportSuccess(req *dns.Msg, res *dns.Msg, rtt time.Duration, server string) // TODO: Track per-server stats - var ttl time.Duration = 0 q := req.Question[0] t := dns.TypeToString[q.Qtype] name := q.Name @@ -105,7 +104,7 @@ func ReportSuccess(req *dns.Msg, res *dns.Msg, rtt time.Duration, server string) extra := "" ans := answerList[0] - ttl = time.Second * time.Duration(ans.Header().Ttl) + ttl := time.Second * time.Duration(ans.Header().Ttl) extra = fmt.Sprintf(" (+%d more)", answers-1) result := answerResult(ans)