Skip to content

Commit

Permalink
chore: suppress some lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
developStorm committed Nov 18, 2024
1 parent c0fb013 commit 8c258a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/zdns/dnssec.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ func (v *dNSSECValidator) validate(depth int, trace Trace) (*DNSSECResult, Trace
result.Authoritative = sectionRes

for _, ds := range v.ds {
parsed := ParseAnswer(ds).(DSAnswer)
parsed := ParseAnswer(ds).(DSAnswer) //nolint:golint,errcheck
result.DS = append(result.DS, &parsed)
}
for _, dnskey := range v.dNSKEY {
parsed := ParseAnswer(dnskey).(DNSKEYAnswer)
parsed := ParseAnswer(dnskey).(DNSKEYAnswer) //nolint:golint,errcheck
result.DNSKEY = append(result.DNSKEY, &parsed)
}

Expand Down Expand Up @@ -80,7 +80,7 @@ func (v *dNSSECValidator) validateSection(section []dns.RR, depth int, trace Tra
if sigUsed != nil {
setResult.Status = DNSSECSecure

sigParsed := ParseAnswer(sigUsed).(RRSIGAnswer)
sigParsed := ParseAnswer(sigUsed).(RRSIGAnswer) //nolint:golint,errcheck
setResult.Signature = &sigParsed
} else {
v.r.verboseLog(depth+1, "could not verify any RRSIG for type", dns.TypeToString[rrType], ":", err)
Expand Down

0 comments on commit 8c258a4

Please sign in to comment.