mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
Run gofmt -s and golint on the codebase (#2918)
* Run gofmt -s and golint on the codebase Run golint and fix everythign it flagged (except the context arg ordering), mostly edits in the rewrite plugin. Signed-off-by: Miek Gieben <miek@miek.nl> * ... and ofcourse the test as well Signed-off-by: Miek Gieben <miek@miek.nl>
This commit is contained in:
@@ -104,7 +104,7 @@ func logParse(c *caddy.Controller) ([]Rule, error) {
|
||||
classes[response.All] = struct{}{}
|
||||
}
|
||||
|
||||
for i := len(rules) - 1; i >= length; i -= 1 {
|
||||
for i := len(rules) - 1; i >= length; i-- {
|
||||
rules[i].Class = classes
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user