goreport card fixes (#4139)
This fixes some inefassign as report by Go report card: https://goreportcard.com/report/github.com/coredns/coredns Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
parent
aa82ca62fb
commit
24e668ecf0
3 changed files with 3 additions and 4 deletions
|
@ -248,7 +248,7 @@ func Section(tc Case, sec sect, rr []dns.RR) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// CNAMEOrder makes sure that CNAMES do not appear after their target records
|
||||
// CNAMEOrder makes sure that CNAMES do not appear after their target records.
|
||||
func CNAMEOrder(res *dns.Msg) error {
|
||||
for i, c := range res.Answer {
|
||||
if c.Header().Rrtype != dns.TypeCNAME {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue