aboutsummaryrefslogtreecommitdiff
path: root/plugin/rewrite/class.go
diff options
context:
space:
mode:
authorGravatar Nguyen Phuong An <annp1987@users.noreply.github.com> 2019-02-20 19:12:21 +0700
committerGravatar Paul G <greenpau@users.noreply.github.com> 2019-02-20 07:12:21 -0500
commite78d9a7893d8f51122f25e396935085bd9afe266 (patch)
tree57a243b41c09947b049b562bad9a32fcd148307a /plugin/rewrite/class.go
parent3c23aac2d3433dff062e5f5c7a275b886a3f31cb (diff)
downloadcoredns-e78d9a7893d8f51122f25e396935085bd9afe266.tar.gz
coredns-e78d9a7893d8f51122f25e396935085bd9afe266.tar.zst
coredns-e78d9a7893d8f51122f25e396935085bd9afe266.zip
Remove some duplicate worlds (#2582)
Signed-off-by: Nguyen Phuong An <AnNP@vn.fujitsu.com>
Diffstat (limited to 'plugin/rewrite/class.go')
-rw-r--r--plugin/rewrite/class.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/rewrite/class.go b/plugin/rewrite/class.go
index dceb4429b..6906dcf6c 100644
--- a/plugin/rewrite/class.go
+++ b/plugin/rewrite/class.go
@@ -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 {