mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
Remove some duplicate worlds (#2582)
Signed-off-by: Nguyen Phuong An <AnNP@vn.fujitsu.com>
This commit is contained in:
@@ -29,7 +29,7 @@ func newClassRule(nextAction string, args ...string) (Rule, error) {
|
||||
return &classRule{from, to, nextAction}, nil
|
||||
}
|
||||
|
||||
// Rewrite rewrites the the current request.
|
||||
// Rewrite rewrites the current request.
|
||||
func (rule *classRule) Rewrite(ctx context.Context, state request.Request) Result {
|
||||
if rule.fromClass > 0 && rule.toClass > 0 {
|
||||
if state.Req.Question[0].Qclass == rule.fromClass {
|
||||
|
||||
@@ -30,7 +30,7 @@ func newTypeRule(nextAction string, args ...string) (Rule, error) {
|
||||
return &typeRule{from, to, nextAction}, nil
|
||||
}
|
||||
|
||||
// Rewrite rewrites the the current request.
|
||||
// Rewrite rewrites the current request.
|
||||
func (rule *typeRule) Rewrite(ctx context.Context, state request.Request) Result {
|
||||
if rule.fromType > 0 && rule.toType > 0 {
|
||||
if state.QType() == rule.fromType {
|
||||
|
||||
Reference in New Issue
Block a user