Chore: pass staticcheck

This commit is contained in:
Dreamacro
2020-08-25 22:19:59 +08:00
parent c1b4382fe8
commit 5805334ccd
31 changed files with 72 additions and 99 deletions

View File

@ -55,7 +55,6 @@ func withHosts(hosts *trie.DomainTrie) middleware {
msg.RecursionAvailable = true
w.WriteMsg(msg)
return
}
}
}
@ -99,7 +98,6 @@ func withFakeIP(fakePool *fakeip.Pool) middleware {
msg.RecursionAvailable = true
w.WriteMsg(msg)
return
}
}
}
@ -130,7 +128,6 @@ func withResolver(resolver *Resolver) handler {
msg.SetRcode(r, msg.Rcode)
msg.Authoritative = true
w.WriteMsg(msg)
return
}
}