mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 16:24:19 -04:00
add golangci-lint linter (#5499)
This commit is contained in:
@@ -180,7 +180,6 @@ func newEdns0VariableRule(mode, action, code, variable string) (*edns0VariableRu
|
||||
|
||||
// ruleData returns the data specified by the variable.
|
||||
func (rule *edns0VariableRule) ruleData(ctx context.Context, state request.Request) ([]byte, error) {
|
||||
|
||||
switch rule.variable {
|
||||
case queryName:
|
||||
return []byte(state.QName()), nil
|
||||
|
||||
Reference in New Issue
Block a user