cleanup some code (#4989)

Automatically submitted.
This commit is contained in:
xuweiwei
2021-11-20 00:15:58 +08:00
committed by GitHub
parent c707a4e7c6
commit 5f900b86f5
3 changed files with 3 additions and 8 deletions

View File

@@ -26,7 +26,7 @@ func isDNSSEC(r dns.RR) bool {
// returned.
func filterRRSlice(rrs []dns.RR, ttl uint32, do, dup bool) []dns.RR {
j := 0
rs := make([]dns.RR, len(rrs), len(rrs))
rs := make([]dns.RR, len(rrs))
for _, r := range rrs {
if !do && isDNSSEC(r) {
continue