mirror of
https://github.com/coredns/coredns.git
synced 2026-04-05 11:45:33 -04:00
lint(revive): fix unused-parameter violations (#7980)
This commit is contained in:
@@ -30,7 +30,7 @@ func newClassRule(nextAction string, args ...string) (Rule, error) {
|
||||
}
|
||||
|
||||
// Rewrite rewrites the current request.
|
||||
func (rule *classRule) Rewrite(ctx context.Context, state request.Request) (ResponseRules, Result) {
|
||||
func (rule *classRule) Rewrite(_ctx context.Context, state request.Request) (ResponseRules, Result) {
|
||||
if rule.fromClass > 0 && rule.toClass > 0 {
|
||||
if state.Req.Question[0].Qclass == rule.fromClass {
|
||||
state.Req.Question[0].Qclass = rule.toClass
|
||||
|
||||
Reference in New Issue
Block a user