From e9b4abcd1389e2b7927c06f352c6b43f577f9c9d Mon Sep 17 00:00:00 2001 From: Shulhan Date: Tue, 7 May 2019 19:19:52 +0700 Subject: dns: suppress linter warning on global variable "rcodeNames" --- lib/dns/dns.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dns/dns.go b/lib/dns/dns.go index 064bf9d3..e3c99471 100644 --- a/lib/dns/dns.go +++ b/lib/dns/dns.go @@ -219,7 +219,7 @@ const ( // rcodeNames contains mapping of response code with their human readable // names. // -var rcodeNames = map[ResponseCode]string{ +var rcodeNames = map[ResponseCode]string{ //nolint: gochecknoglobals RCodeOK: "OK", RCodeErrFormat: "ERR_FORMAT", RCodeErrServer: "ERR_SERVER", -- cgit v1.3