mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 00:34:24 -04:00
Run golint and go vet (#276)
Cleanup the errors and removed deadcode along the way. The leaves some error laying around, mostly about commenting exported identifier. We should look hard if those really are needed.
This commit is contained in:
@@ -6,6 +6,8 @@ import (
|
||||
"github.com/miekg/dns"
|
||||
)
|
||||
|
||||
// ToString convert the rcode to the offical DNS string, or to "RCODE"+value if the RCODE
|
||||
// value is unknown.
|
||||
func ToString(rcode int) string {
|
||||
if str, ok := dns.RcodeToString[rcode]; ok {
|
||||
return str
|
||||
|
||||
Reference in New Issue
Block a user